[issue19951] parse_qsl fails on empty query argument without =

R. David Murray report at bugs.python.org
Wed Dec 11 19:43:06 CET 2013


R. David Murray added the comment:

I did some research on this for a previous issue, and every description of query strings I could find agreed that the format was '<name>=<value>'.  That is, that the '=' is not optional, even though some servers (note, *not* browsers, they just transmit or display the URI provided by the user or server) will accept parameters without the '=' and treat them as if they had one.

So I think this being rejected by strict_parsing is correct.  I'm closing this as invalid.

As for what strict_parsing, controls, you can check the source.  It looks like this and empty arguments (ie: &&) are the only things it controls.

----------
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19951>
_______________________________________


More information about the Python-bugs-list mailing list