Skip to content

Commit

Permalink
Fix generating ASGI keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hasier committed Nov 10, 2022
1 parent 7acc336 commit a0b4c4f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ def get(
return decoded

def keys(self, carrier: dict) -> typing.List[str]:
return [_key.decode("utf8") for (_key, _value) in carrier]
headers = carrier.get("headers") or []
return [_key.decode("utf8") for (_key, _value) in headers]


asgi_getter = ASGIGetter()
Expand Down

0 comments on commit a0b4c4f

Please sign in to comment.