Skip to content

Commit

Permalink
Remove HSTS header from proxied requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreprinetti committed Nov 17, 2022
1 parent 51a6a8f commit b5c237b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (t loggingTransport) RoundTrip(req *http.Request) (*http.Response, error) {
req.Host = req.URL.Host
res, err := t.transport.RoundTrip(req)
log.Printf("%s %q -> %q %d", reqMethod, originalURL, reqURL, res.StatusCode)
res.Header.Del("strict-transport-security")
return res, err
}

Expand Down

0 comments on commit b5c237b

Please sign in to comment.