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 authored and GitHub committed 2020-07-08 10:55:24 -07:00
1 parent 60417950c7
commit 6136a963c8
3 files changed
+6 -6

No files matched your search

+1 -1
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)
},