Skip to content

Commit

Permalink
Revert ":arrow_up: Bump asgiref to 3.4.0 (encode#1100)" to avoid Dead…
Browse files Browse the repository at this point in the history
…Lock

This reverts commit 312b186.
  • Loading branch information
tony committed Jan 3, 2022
1 parent 40d92d6 commit 2c05ed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_packages(package):
env_marker_gte_37 = "python_version >= '3.7'"

minimal_requirements = [
"asgiref>=3.4.0",
"asgiref>=3.3.4",
"click>=7.0",
"h11>=0.8",
"typing-extensions;" + env_marker_below_38,
Expand Down
4 changes: 2 additions & 2 deletions uvicorn/middleware/proxy_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ASGISendCallable,
HTTPScope,
Scope,
WebSocketScope,
WebsocketScope,
)


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

Expand Down

0 comments on commit 2c05ed1

Please sign in to comment.