aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.py b/server.py
index ac30156..5a68928 100644
--- a/server.py
+++ b/server.py
@@ -74,6 +74,9 @@ def error_code(code, start_response):
def site_dispatch(env, start_response):
client_address = env['REMOTE_ADDR']
try:
+ # correct malformed query string with ? separators instead of &
+ env['QUERY_STRING'] = env['QUERY_STRING'].replace('?', '&')
+
method = env['REQUEST_METHOD']
path = env['PATH_INFO']