[Web-SIG] WSGI: QUERY_STRING and cgi stdlib module

Ian Bicking ianb at colorstudy.com
Wed Dec 21 20:22:02 CET 2005

I thought I'd note that in testing I noticed that if QUERY_STRING is 
missing the cgi module falls back on sys.argv, which is aweful.  WSGI 
says QUERY_STRING is optional, but if you pass the WSGI environment to 
cgi.FieldStorage you get this bug.  Should QUERY_STRING just be 
required?  It's almost always set anyways.

Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org

More information about the Web-SIG mailing list