Skip to content

Commit

Permalink
Cache handler was removing the Host header from http.Request
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsmile committed Nov 12, 2015
1 parent 071c035 commit 3e99bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/cache/handler_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (h *reqHandler) getNormalizedRequest() *http.Request {
ProtoMajor: 1,
ProtoMinor: 1,
Header: make(http.Header),
Host: h.req.URL.Host,
Host: h.req.Host,
}

httputils.CopyHeadersWithout(h.req.Header, result.Header, "Accept-Encoding")
Expand Down

0 comments on commit 3e99bf6

Please sign in to comment.