Skip to content

Commit b15d70f

Browse files
committed
⬆️ Bump asgiref to 3.4.0 (#1100)
1 parent 9c151fa commit b15d70f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_packages(package):
4444
env_marker_below_38 = "python_version < '3.8'"
4545

4646
minimal_requirements = [
47-
"asgiref>=3.3.4",
47+
"asgiref>=3.4.0",
4848
"click>=7.*",
4949
"h11>=0.8",
5050
"typing-extensions;" + env_marker_below_38,

uvicorn/middleware/proxy_headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ASGISendCallable,
1717
HTTPScope,
1818
Scope,
19-
WebsocketScope,
19+
WebSocketScope,
2020
)
2121

2222

@@ -47,7 +47,7 @@ async def __call__(
4747
self, scope: Scope, receive: ASGIReceiveCallable, send: ASGISendCallable
4848
) -> None:
4949
if scope["type"] in ("http", "websocket"):
50-
scope = cast(Union[HTTPScope, WebsocketScope], scope)
50+
scope = cast(Union[HTTPScope, WebSocketScope], scope)
5151
client_addr: Optional[Tuple[str, int]] = scope.get("client")
5252
client_host = client_addr[0] if client_addr else None
5353

0 commit comments

Comments
 (0)