Uvicorn (almost) always used chunked encoding (even with HTTP 1.0) #2645
Unanswered
mkiesel
asked this question in
Potential Issue
Replies: 1 comment
-
Maybe try with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Because of https://github.com/encode/uvicorn/blob/5e33d430f13622c8363fe74d97963ab37f3df3c2/uvicorn/protocols/http/httptools_impl.py#L505 , Uvicorn uses chunked encoding by default. However, HTTP 1.0 doesn't support chunked encoding, and quite a few legacy devices (e.g., music streaming devices) don't either. It would be good if Uvicorn supported both HTTP 1.0 and legacy devices (the latter probably via some "don't use chunked encoding" flag).
Related to https://github.com/encode/uvicorn/pull/1360/files which also contains a workaround.
Beta Was this translation helpful? Give feedback.
All reactions