From: Mark Wooding Date: Thu, 12 Jun 2014 14:02:54 +0000 (+0100) Subject: cgi.py: No, `QUERY_STRING' is not mandatory in GET requests. X-Git-Tag: 1.1.0^0 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/commitdiff_plain/dd650029f6d572194a7d9a035f9e55195b64d64c cgi.py: No, `QUERY_STRING' is not mandatory in GET requests. --- diff --git a/cgi.py b/cgi.py index 227d33b..8009eaf 100644 --- a/cgi.py +++ b/cgi.py @@ -403,7 +403,7 @@ def cgiparse(): ## Acquire the query string. if METHOD in ['GET', 'HEAD']: - q = getenv('QUERY_STRING') + q = ENV.get('QUERY_STRING', '') elif METHOD == 'POST':