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

gevent.wsgi bug fix: unquote PATH_INFO

parent bf719af3
import sys
import traceback
from urllib import unquote
from datetime import datetime
from gevent.http import HTTPServer
socket = __import__('socket')
......@@ -74,6 +75,7 @@ class WSGIHandler(object):
path, query = req.uri.split('?',1)
else:
path, query = req.uri, ''
path = unquote(path)
env.update({'REQUEST_METHOD': req.typestr,
'PATH_INFO': path,
'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