Skip to content

Commit 9150cfa

Browse files
committed
fix
1 parent 6a16e04 commit 9150cfa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

azure/functions/_http_wsgi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ def __init__(self,
3030
self.request_method = getattr(func_req, 'method', None)
3131
self.script_name = ''
3232
self.path_info = unquote_to_bytes(
33-
getattr(url, 'path', None)).decode('utf-8') # type: ignore
33+
getattr(url, 'path', None)).decode('latin-1'
34+
if type(self) is WsgiRequest
35+
else 'utf-8') # type: ignore
36+
3437
self.query_string = getattr(url, 'query', None)
3538
self.content_type = self._lowercased_headers.get('content-type')
3639
self.content_length = str(len(func_req_body))

0 commit comments

Comments
 (0)