Use one http response recorder per external http call (#16938)

This commit is contained in:
Anis Eleuch
2023-03-31 17:37:29 +01:00
committed by GitHub
parent 216a471bbb
commit d90d0c8931
5 changed files with 32 additions and 21 deletions

View File

@@ -555,7 +555,7 @@ func addCustomHeaders(h http.Handler) http.Handler {
if globalLocalNodeName != "" {
w.Header().Set(xhttp.AmzRequestHostID, globalLocalNodeNameHex)
}
h.ServeHTTP(xhttp.NewResponseRecorder(w), r)
h.ServeHTTP(w, r)
})
}