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 5c97f07 commit 72f6dddCopy full SHA for 72f6ddd
azure/functions/_http_wsgi.py
@@ -1,9 +1,9 @@
1
# Copyright (c) Microsoft Corporation. All rights reserved.
2
# Licensed under the MIT License.
3
-from typing import Dict, List, Optional, Any
4
import logging
5
from io import BytesIO, StringIO
6
from os import linesep
+from typing import Dict, List, Optional, Any
7
from urllib.parse import ParseResult, urlparse, unquote_to_bytes
8
from wsgiref.headers import Headers
9
@@ -12,9 +12,7 @@
12
13
14
def wsgi_encoding_dance(value):
15
- if isinstance(value, str):
16
- return value.encode("latin-1")
17
- return value
+ return value.encode().decode("latin1")
18
19
20
class WsgiRequest:
0 commit comments