From df8b49f6779b9de508416ad3823bac868bb8efcf Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 8 Jan 2022 17:54:14 +0100 Subject: [PATCH] Add missing http version on websockets scope (#1309) --- uvicorn/protocols/websockets/websockets_impl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/uvicorn/protocols/websockets/websockets_impl.py b/uvicorn/protocols/websockets/websockets_impl.py index 0fe0b7c3d..95875b1e3 100644 --- a/uvicorn/protocols/websockets/websockets_impl.py +++ b/uvicorn/protocols/websockets/websockets_impl.py @@ -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,