Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore BrokenResourceError in BaseHTTPMiddleware
ASGI specifies that send is a no-op when the connection is closed. HTTPMiddleware uses anyio streams which will raise an exception when the connection is closed prematurely. So we need to ignore the exception in our send function. Fixes #1284
- Loading branch information