httpproxy
httpproxy copied to clipboard
Go HTTP proxy server library
502 Bad Gateway seems more accurate
The opErrror processing does not seem to work. TBH I do not understand the code (still new to golang) When I replace it with checks like error.Is(err,syscall.EPIPE) instead , etc....
I see in proxy.go that outbound connections are made using local proxy environment variable. This does not work for https:// connection. prx := &Proxy{ Rt: &http.Transport{TLSClientConfig: &tls.Config{}, Proxy: http.ProxyFromEnvironment}, MitmChunked:...