We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following issue happens when trying to reproduce the snippet from #2516 on anyio v3:
| Traceback (most recent call last): | File "/home/jonathan/git/starlette/starlette/middleware/base.py", line 137, in close_recv_stream_on_response_sent | recv_stream.close() | AttributeError: 'MemoryObjectReceiveStream' object has no attribute 'close'
The fix is simple:
--- a/starlette/middleware/base.py +++ b/starlette/middleware/base.py @@ -134,7 +134,7 @@ class BaseHTTPMiddleware: async def close_recv_stream_on_response_sent() -> None: await response_sent.wait() - recv_stream.close() + await recv_stream.aclose() async def send_no_error(message: Message) -> None: try:
Important
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The following issue happens when trying to reproduce the snippet from #2516 on anyio v3:
The fix is simple:
Important
The text was updated successfully, but these errors were encountered: