goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

fix: honour KeepHeader on https connections

Open mvanholsteijn opened this issue 2 years ago • 0 comments

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

mvanholsteijn avatar Dec 28 '21 12:12 mvanholsteijn