Closed
Description
The client wrongly strips transfer-encoding: chunked
from GET requests, thinking that GET requests shouldn't have payloads. However, that's not explicitly true:
A payload within a GET request message has no defined semantics;
sending a payload body on a GET request might cause some existing
implementations to reject the request.
The original implementation was trying to protect from empty Body::wrap_stream(some_empty_stream)
s automatically adding transfer-encoding: chunked
to a GET request.
The fix should probably still protect against that, but if the transfer-encoding
header has been explicitly set on the Request
, it should be forwarded as-is.