Skip to content

Commit

Permalink
Fixed original app stored w/o reference resolution in ASGIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed May 3, 2022
1 parent 27d67a1 commit eb8548f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asphalt/web/asgi3.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ def __init__(
self,
components: dict[str, dict[str, Any] | None] = None,
*,
app: T_Application,
app: T_Application | str,
host: str = "127.0.0.1",
port: int = 8000,
middlewares: Sequence[Callable[..., ASGI3Application] | dict[str, Any]] = (),
) -> None:
super().__init__(components)
self.app: T_Application = resolve_reference(app)
self.original_app = app
self.original_app = self.app
self.host = host
self.port = port

Expand Down

0 comments on commit eb8548f

Please sign in to comment.