Commit 926ffd02 authored by Denis Bilenko's avatar Denis Bilenko

gevent.wsgi bug fix: unquote PATH_INFO

parent bf719af3
import sys import sys
import traceback import traceback
from urllib import unquote
from datetime import datetime from datetime import datetime
from gevent.http import HTTPServer from gevent.http import HTTPServer
socket = __import__('socket') socket = __import__('socket')
...@@ -74,6 +75,7 @@ class WSGIHandler(object): ...@@ -74,6 +75,7 @@ class WSGIHandler(object):
path, query = req.uri.split('?',1) path, query = req.uri.split('?',1)
else: else:
path, query = req.uri, '' path, query = req.uri, ''
path = unquote(path)
env.update({'REQUEST_METHOD': req.typestr, env.update({'REQUEST_METHOD': req.typestr,
'PATH_INFO': path, 'PATH_INFO': path,
'QUERY_STRING': query, 'QUERY_STRING': query,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment