8000
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 609e21a commit 02efbe6Copy full SHA for 02efbe6
sentry_sdk/integrations/_asgi_common.py
@@ -21,7 +21,7 @@ def _get_headers(asgi_scope):
21
Extract headers from the ASGI scope, in the format that the Sentry protocol expects.
22
"""
23
headers = {} # type: Dict[str, str]
24
- for raw_key, raw_value in asgi_scope["headers"]:
+ for raw_key, raw_value in asgi_scope.get("headers", {}):
25
key = raw_key.decode("latin-1")
26
value = raw_value.decode("latin-1")
27
if key in headers:
0 commit comments