You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See:
http://play.golang.org/p/toLUTjj_fE
The Host field is not written, since Request.Write(io.Writer) uses Request.Host, and not
Request.Header.Get("Host").
It's document that Request.Write uses the Host field, and it's listed first:
http://golang.org/pkg/net/http/#Request.Write
Should Request.Write fall back to Request.Header.Get("Host") if Request.Host
is unset?
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: