misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-03-09 12:53:35 +01:00
commit 0f8c668f87
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -267,6 +267,7 @@ func (s *SSLStripper) Preprocess(req *http.Request, ctx *goproxy.ProxyCtx) (redi
// well ... // well ...
if req.URL.Scheme == "https" { if req.URL.Scheme == "https" {
// TODO: check for max redirects?
req.URL.Scheme = "http" req.URL.Scheme = "http"
} }