Content-Length: 211786 | pFad | https://github.com/mubeng/mubeng/commit/a5753440978e93a82b4b7de164c467c4edd0ad01

77 feat(server): update `mubeng.New` impl · mubeng/mubeng@a575344 · GitHub
Skip to content

Commit

Permalink
feat(server): update mubeng.New impl
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <git@dw1.io>
  • Loading branch information
dwisiswant0 committed Sep 2, 2024
1 parent 982b53f commit a575344
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ func (p *Proxy) onRequest(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Reque
Transport: tr,
}

client, req = proxy.New(req)
client, err := proxy.New(req)
if err != nil {
resChan <- err
return
}

client.Timeout = p.Options.Timeout
if p.Options.Verbose {
client.Transport = dump.RoundTripper(tr)
Expand Down

0 comments on commit a575344

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/mubeng/mubeng/commit/a5753440978e93a82b4b7de164c467c4edd0ad01

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy