-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
rewrite middleware to pure ASGI #18
Comments
Hmm, good point. I never heard about this issue before and I'm not affected by this. I will definitely rewrite this to pure ASGI at some point as it seems like there are no downsides of the solution you suggest but I will give it some time until the creators of Starlette decide what to do next. From the tickets you linked I conclude that |
Not in some cases. It's broken by design. |
Here is a nice and simple example of ASGI middleware: https://github.com/encode/starlette/blob/master/starlette/middleware/sessions.py |
Yeah, I see. I will rewrite it over the weekend. Thanks for letting me know. |
@dmig-alarstudios 0.3.0 published with what should be a functioning "raw" middleware. Let me know if it doesn't work as expected. |
Since there are issues in Starlette caused by
BaseHTTPMiddleware
class, this package becomes a source of these issues in any project using it:BaseHTTPMiddleware
encode/starlette#919The simple solution would be to rewrite the middleware to pure ASGI.
The text was updated successfully, but these errors were encountered: