Skip to content

Commit

Permalink
Run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMGranger committed Sep 15, 2015
1 parent aedaad7 commit e153096
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions https.go
Expand Up @@ -176,11 +176,11 @@ func (proxy *ProxyHttpServer) handleHttps(w http.ResponseWriter, r *http.Request
req.RemoteAddr = r.RemoteAddr // since we're converting the request, need to carry over the original connecting IP as well
ctx.Logf("req %v", r.Host)
req.URL, err = url.Parse("https://" + r.Host + req.URL.String())
// Bug fix which goproxy fails to provide request
// information URL in the context when does HTTPS MITM

// Bug fix which goproxy fails to provide request
// information URL in the context when does HTTPS MITM
ctx.Req = req

req, resp := proxy.filterRequest(req, ctx)
if resp == nil {
if err != nil {
Expand Down

0 comments on commit e153096

Please sign in to comment.