Skip to content

HttpProxy can send both Content-Length and Transfer-Encoding headers #131

@elunji

Description

@elunji

Version

4.5.21 5.0.4

Context

When setting a streamable body on a ProxyResponse, a Transfer-Encoding chunked header is added, but the Content-Type header from the origin server is not removed, leading to both headers being present, which is not allowed and makes certain http client choke.

Steps to reproduce

Call ProxyResponse.setBody() and a streamable Body.

Do you have a reproducer?

https://gist.github.com/elunji/3aeb68ffaf5f965df974c6a2b0d8168e

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions