[issue1817] module-cgi: handling GET and POST together

Alexandre Fiori report at bugs.python.org
Sun Jan 13 06:13:37 CET 2008


Alexandre Fiori added the comment:

Here it is, babe. I've made appropriate changes to make it read
QUERY_STRING when it's available within POST method. It's currently
being parsed by parse_qsl() in read_urlencoded() as it should be in
regular GET or POST. I didn't touch CONTENT_LENGTH since it has the size
of the POST data without QUERY_STRING's size. That would affect read()
of such POST data. It's working. Thanks for the incentive, it's my first
patch for python.

Added file: http://bugs.python.org/file9148/cgi.py.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1817>
__________________________________


More information about the Python-bugs-list mailing list