(scope: Scope, receive: Receive, send: Send)
| 69 | middleware = HTTPSRedirectMiddleware(PlainTextResponse("OK")) |
| 70 | |
| 71 | async def app(scope: Scope, receive: Receive, send: Send) -> None: |
| 72 | scope.pop("server", None) |
| 73 | await middleware(scope, receive, send) |
| 74 | |
| 75 | client = test_client_factory(app) |
| 76 | response = client.get("/", headers={"host": host}, follow_redirects=False) |