-
-
Notifications
You must be signed in to change notification settings - Fork 979
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
Stop body_stream
in case more_body=False
#2194
Conversation
I've tested against FastAPI main branch, and it looks like it doesn't break the dependency injection system, as the previous attempt. @encode/maintainers Can someone review it, please? I want us to make sure that we don't break FastAPI. If you have a suggestion about how to test this, it would be appreciated as well. |
That's ok. |
On As long as we can confirm via a test that this fixes the issues with background tasks this looks good to me 👍🏻 |
I gave another round of manual test with FastAPI, and it works as expected - not breaking their dependency system. 🙏 |
Hi, this PR regressed this issue, I've tested manually that commenting those two lines allowed (I'm no expert in ASGI and starlette codebase, don't understand the root issue that this change was trying to fix and I'm then unable to propose a better fix...) |
Closes #2093
We need to check how this interacts with FastAPI: #1609 (comment)
I've tested this with the following application:
Run with
uvicorn --http h11 main:app --reload
.I've used the following client:
Run with
python client.py
.