From c2f10a7f75bc6728c52af4dde97c509b55c060ed Mon Sep 17 00:00:00 2001 From: cce Date: Sun, 3 Sep 2006 15:50:40 +0000 Subject: fixing parse_formvars to permit missing QUERY_STRING, which is permitted by the WSGI specification --- paste/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/request.py') diff --git a/paste/request.py b/paste/request.py index 092c0c5..f2354ca 100644 --- a/paste/request.py +++ b/paste/request.py @@ -150,7 +150,7 @@ def parse_formvars(environ, include_get_vars=True): not type.startswith('multipart/form-data') # Prevent FieldStorage from parsing QUERY_STRING during GET/HEAD # requests - old_query_string = environ['QUERY_STRING'] + old_query_string = environ.get('QUERY_STRING','') environ['QUERY_STRING'] = '' if fake_out_cgi: input = StringIO('') -- cgit v1.2.1