Skip to content

Commit dc9c1fc

Browse files
committed
Revert ":arrow_up: Bump asgiref to 3.4.0 (encode#1100)" to avoid DeadLock
This reverts commit 312b186.
1 parent 7982b15 commit dc9c1fc

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
@@ -46,7 +46,7 @@ def get_packages(package):
4646
env_marker_gte_37 = "python_version >= '3.7'"
4747

4848
minimal_requirements = [
49-
"asgiref>=3.4.0",
49+
"asgiref>=3.3.4",
5050
"click>=7.0",
5151
"h11>=0.8",
5252
"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)