wsgi: fix py2 compatibility
parent
917aa0fbc5
commit
87d2fe772d
|
@ -277,7 +277,7 @@ def cgi_handle_request():
|
||||||
|
|
||||||
class WSGIRequestHandlerRequestUri(wsgiref.simple_server.WSGIRequestHandler):
|
class WSGIRequestHandlerRequestUri(wsgiref.simple_server.WSGIRequestHandler):
|
||||||
def get_environ(self):
|
def get_environ(self):
|
||||||
env = super().get_environ()
|
env = wsgiref.simple_server.WSGIRequestHandler.get_environ(self)
|
||||||
env['REQUEST_URI'] = self.path
|
env['REQUEST_URI'] = self.path
|
||||||
return env
|
return env
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue