fix: bump the response header timeout for forwarder as well (#9994)

continuation of #9986, add more place where the lower timeout
comes into effect.
This commit is contained in:
Harshavardhana
2020-07-08 10:55:24 -07:00
committed by GitHub
parent 60417950c7
commit 6136a963c8
3 changed files with 6 additions and 6 deletions

View File

@@ -700,7 +700,7 @@ func (f bucketForwardingHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
func setBucketForwardingHandler(h http.Handler) http.Handler {
fwd := handlers.NewForwarder(&handlers.Forwarder{
PassHost: true,
RoundTripper: NewGatewayHTTPTransport(),
RoundTripper: newGatewayHTTPTransport(1 * time.Hour),
Logger: func(err error) {
logger.LogIf(GlobalContext, err)
},