ninenines / gun

HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP.
ISC License
898 stars 231 forks source link

Host-header is ignored in the HTTP2 module #118

Closed strange closed 7 years ago

strange commented 7 years ago

In gun_http.erl a host-header is added only if one is not already present. In gun_http2.erl it is always automatically injected. The effect is that custom host-headers are honored when the gun_http.erl transport is used but ignored when using gun_http2.erl.

essen commented 7 years ago

Fixed locally, pushed soon. Thanks!