hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting host header in HttpGetter doesn't work

WeiKangJian opened this issue · comments

commented

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

commented

pr #403