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 118f259 commit 4d596a2Copy full SHA for 4d596a2
instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py
@@ -945,4 +945,7 @@ def _decode_header_item(value):
945
try:
946
return value.decode("utf-8")
947
except ValueError:
948
- return value.decode("latin-1")
+ # ASGI header encoding specs, see:
949
+ # - https://asgi.readthedocs.io/en/latest/specs/www.html#wsgi-encoding-differences (see: WSGI encoding differences)
950
+ # - https://docs.python.org/3/library/codecs.html#text-encodings (see: Text Encodings)
951
+ return value.decode("unicode_escape")
0 commit comments