Skip to content

Commit

Permalink
Add missing http version on websockets scope (encode#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Oct 29, 2022
1 parent 4997006 commit cbe5292
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 cbe5292

Please sign in to comment.