-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
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
pathsend causing issues with BaseHTTPMiddleware #2613
Comments
@gi0baro We are considering deprecating In any case, we don't recommend using
Wdyt? About the |
In any case, I don't want to add more stuff to the |
Sure, I'll prepare a PR for that.
So instead of an
Maybe we can also add a line in the documentation here (https://www.starlette.io/middleware/#basehttpmiddleware) in the limitations section, wdyt @Kludex? |
What do you want to add there?
👍
I changed my mind. Your |
I would make it look like this:
|
Hi guys
This is a follow up of emmett-framework/granian#320
I'm not entirely sure if this is really a bug of starlette, or more of a feature that's missing or so.
On my staging environment, I did receive an assertion error:
As I could not reproduce it locally, I monkey-patched starlette and printed an error message with details:
I think this happens because my server does support the pathsend extension, however middlware that act's on it and just derives from BaseHTTPMiddleware will fail, since it cannot handle this.
Important
The text was updated successfully, but these errors were encountered: