Skip to content

Commit

Permalink
Don't follow redirects (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
reginbald authored May 24, 2024
1 parent 3fa3869 commit 9f85057
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runner/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ func NewProxy(cfg *cfgProxy) *Proxy {
server: &http.Server{
Addr: fmt.Sprintf(":%d", cfg.ProxyPort),
},
client: &http.Client{},
client: &http.Client{
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
},
stream: NewProxyStream(),
}
return p
Expand Down

0 comments on commit 9f85057

Please sign in to comment.