elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.1k forks source link

The keepHeaders option does not work on https connections #453

Open Li4n0 opened 3 years ago

Li4n0 commented 3 years ago

image https://github.com/elazarl/goproxy/blob/master/https.go#L231

As this image show, it doesn't check whether keepHeaders enable or not before call removeProxyHeaders.