diff options
author | cce <devnull@localhost> | 2006-09-03 15:50:40 +0000 |
---|---|---|
committer | cce <devnull@localhost> | 2006-09-03 15:50:40 +0000 |
commit | c2f10a7f75bc6728c52af4dde97c509b55c060ed (patch) | |
tree | d2b38bedc3f5f7d98c42d09c994791fa924a8606 /paste/request.py | |
parent | 21cbbbf0b6f270e85a8780a3524354890a929dd7 (diff) | |
download | paste-c2f10a7f75bc6728c52af4dde97c509b55c060ed.tar.gz |
fixing parse_formvars to permit missing QUERY_STRING, which
is permitted by the WSGI specification
Diffstat (limited to 'paste/request.py')
-rw-r--r-- | paste/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
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('') |