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 c6ae418 commit 5fff034Copy full SHA for 5fff034
azure/functions/_http_wsgi.py
@@ -5,7 +5,7 @@
5
import logging
6
from io import BytesIO, StringIO
7
from os import linesep
8
-from urllib.parse import urlparse
+from urllib.parse import urlparse, unquote_to_bytes
9
from wsgiref.headers import Headers
10
11
from ._abc import Context
@@ -30,7 +30,7 @@ def __init__(self,
30
# Implement interfaces for PEP 3333 environ
31
self.request_method = getattr(func_req, 'method', None)
32
self.script_name = ''
33
- self.path_info = getattr(url, 'path', None)
+ self.path_info = unquote_to_bytes(getattr(url, 'path', None)).decode('latin-1')
34
self.query_string = getattr(url, 'query', None)
35
self.content_type = self._lowercased_headers.get('content-type')
36
self.content_length = str(len(func_req_body))
0 commit comments