Decode path as utf8
This commit is contained in:
parent
b216e42397
commit
2f4dec45a6
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class UiServer:
|
||||||
|
|
||||||
# Handle WSGI request
|
# Handle WSGI request
|
||||||
def handleRequest(self, env, start_response):
|
def handleRequest(self, env, start_response):
|
||||||
path = env["PATH_INFO"]
|
path = bytes(env["PATH_INFO"], "raw-unicode-escape").decode("utf8")
|
||||||
if env.get("QUERY_STRING"):
|
if env.get("QUERY_STRING"):
|
||||||
get = dict(cgi.parse_qsl(env['QUERY_STRING']))
|
get = dict(cgi.parse_qsl(env['QUERY_STRING']))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue