ninenines / gun

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

host header issue #149

Closed leoliu closed 5 years ago

leoliu commented 6 years ago

I am speaking to a RESTful API that constantly sending back 301 because the default host header added by gun includes the standard https port 443. There are benefits by not including the standard port in host header.

essen commented 6 years ago

IIRC you can give the host header yourself and it'll override the one in Gun. But you're correct this should be fixed.

leoliu commented 6 years ago

Yes, already using it which was how I knew what was wrong.

essen commented 5 years ago

Done. Thanks!