slogsdon / elixir-reverse-proxy

A Plug based, reverse proxy server written in Elixir.
https://hex.pm/packages/reverse_proxy
MIT License
147 stars 34 forks source link

Drop `Transfer-Encoding` header #8

Closed tt closed 7 years ago

tt commented 7 years ago

If the upstream service uses chunked encoding, it will set the Transfer-Encoding header. HTTPoison will decode the chunks and return the entire body but it keeps the header. This results in a violation of the HTTP specification when the response is returned.

(I apologize that I missed this in #7.)

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 97.297% when pulling 267f736bd7c28df840a8acfca8c95f36b3ae2be4 on tt:drop-transfer-encoding-header into b435e03edd41d10171a18c7cd356a03b7ed9c08a on slogsdon:master.

slogsdon commented 7 years ago

Thanks, @tt! I'll get a release with this pushed out soon.

tt commented 7 years ago

Thank you, @slogsdon.

slogsdon commented 7 years ago

@tt Apologies for the delay! This has been published as a part of v0.3.1.