We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9150cfa commit 5ff7f74Copy full SHA for 5ff7f74
azure/functions/_http_wsgi.py
@@ -29,10 +29,9 @@ def __init__(self,
29
# Implement interfaces for PEP 3333 environ
30
self.request_method = getattr(func_req, 'method', None)
31
self.script_name = ''
32
- self.path_info = unquote_to_bytes(
33
- getattr(url, 'path', None)).decode('latin-1'
34
- if type(self) is WsgiRequest
35
- else 'utf-8') # type: ignore
+ self.path_info = unquote_to_bytes(getattr(url, 'path', None)).decode(
+ 'latin-1' if type(self) is WsgiRequest else 'utf-8'
+ )
36
37
self.query_string = getattr(url, 'query', None)
38
self.content_type = self._lowercased_headers.get('content-type')
0 commit comments