mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-27 02:21:34 +00:00
[Security] Don't leak proxy credentials to target
This commit is contained in:
parent
807a3c31c0
commit
d3a5129f1f
|
@ -117,6 +117,7 @@ func (p *Proxy) handle(w http.ResponseWriter, r *http.Request) error {
|
|||
w.WriteHeader(http.StatusProxyAuthRequired)
|
||||
return nil
|
||||
}
|
||||
r.Header.Del("Proxy-Authorization")
|
||||
}
|
||||
|
||||
if r.Method == "CONNECT" {
|
||||
|
|
Loading…
Reference in a new issue