chiark
/
gitweb
/
~mdw
/
chopwood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgi.py: No, `QUERY_STRING' is not mandatory in GET requests.
[chopwood]
/
cgi.py
diff --git
a/cgi.py
b/cgi.py
index 227d33b236a3f87ca42e061e20cd87f6fb5c5b52..8009eafcd3f5abef6ee15a5c10abae9f602174a8 100644
(file)
--- 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':