Skip to content

Commit

Permalink
Add missing http version on websockets scope (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Jan 8, 2022
1 parent 291c195 commit df8b49f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uvicorn/protocols/websockets/websockets_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ async def process_request(self, path, headers):
self.scope = {
"type": "websocket",
"asgi": {"version": self.config.asgi_version, "spec_version": "2.1"},
"http_version": "1.1",
"scheme": self.scheme,
"server": self.server,
"client": self.client,
Expand Down

0 comments on commit df8b49f

Please sign in to comment.