You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then send a request bigger than the buffer (i.e. > 1000 bytes in this case)
the content-length header to the backend will be set to 1000, but the body will actually be bigger, its io.MultiReader(buf, originalBody), - so the buffer plus the rest.
different backends have slightly different failure modes for this, im seeing this in my caddy logs
I would just offer a PR with a revert, but not sure how that affects the reason this commit was added
The text was updated successfully, but these errors were encountered:
mcfedr
changed the title
content-length is wrong when the request doesnt fit in the request_buffer
reverseproxy: content-length is wrong when the request doesnt fit in the request_buffer
Sep 20, 2023
mcfedr
added a commit
to ekreative/caddy
that referenced
this issue
Sep 20, 2023
how to do it
setup a reverse proxy with request_buffers
then send a request bigger than the buffer (i.e. > 1000 bytes in this case)
the content-length header to the backend will be set to
1000
, but the body will actually be bigger, itsio.MultiReader(buf, originalBody),
- so the buffer plus the rest.different backends have slightly different failure modes for this, im seeing this in my caddy logs
caused by this 2182270 which was fixing #5420
I would just offer a PR with a revert, but not sure how that affects the reason this commit was added
The text was updated successfully, but these errors were encountered: