Skip to content

Commit

Permalink
Bump the spec version on HTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jan 20, 2024
1 parent d2ab85c commit 71c0a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uvicorn/protocols/http/h11_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def handle_events(self) -> None:
"type": "http",
"asgi": {
"version": self.config.asgi_version,
"spec_version": "2.3",
"spec_version": "2.4",
},
"http_version": event.http_version.decode("ascii"),
"server": self.server,
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/protocols/http/httptools_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def on_message_begin(self) -> None:
self.headers = []
self.scope = { # type: ignore[typeddict-item]
"type": "http",
"asgi": {"version": self.config.asgi_version, "spec_version": "2.3"},
"asgi": {"version": self.config.asgi_version, "spec_version": "2.4"},
"http_version": "1.1",
"server": self.server,
"client": self.client,
Expand Down

0 comments on commit 71c0a00

Please sign in to comment.