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.
In
gun_http.erl
a host-header is added only if one is not already present. Ingun_http2.erl
it is always automatically injected. The effect is that custom host-headers are honored when thegun_http.erl
transport is used but ignored when usinggun_http2.erl
.