diff --git a/pkg/proxy.go b/pkg/proxy.go index 45715c2..772a869 100644 --- a/pkg/proxy.go +++ b/pkg/proxy.go @@ -27,6 +27,10 @@ type Proxy struct { func (p *Proxy) Start() error { tcp := 8080 + http.DefaultClient.CheckRedirect = func(req *http.Request, via []*http.Request) error { + return http.ErrUseLastResponse + } + time.Sleep(3 * time.Second) log.Printf("Starting faasd proxy on %d\n", tcp) data := struct{ host string }{