goproxy
goproxy copied to clipboard
fix: honour KeepHeader on https connections
My https proxy inserts a new proxy-authorization header in the OnRequest() method, which is removed in https.go
- I added the if !proxy.KeepHeader condition around the removeProxyHeaders call in https.go just like it was added in proxy.go
- I changed the name from removeProxyHeaders to RemoveProxyHeaders to allow the headers to be removed from an OnRequest() method.
closes #453