hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.62k stars 226 forks source link

Setting host header in HttpGetter doesn't work #402

Open WeiKangJian opened 1 year ago

WeiKangJian commented 1 year ago

According to golang/go#29865, the Host header is ignored and should be set instead using req.Host

Nomad uses go-getter and supports setting HTTP headers on artifact, but setting host header also invalid for this reason. It needs a small change for the particular case of the header Host

WeiKangJian commented 1 year ago

pr #403