add correct HostId instead of deploymentId for error responses (#16686)

This commit is contained in:
Harshavardhana
2023-02-22 02:11:09 -08:00
committed by GitHub
parent 663a0b7783
commit 5c98223c89
5 changed files with 7 additions and 7 deletions

View File

@@ -552,7 +552,7 @@ func addCustomHeaders(h http.Handler) http.Handler {
// Set custom headers such as x-amz-request-id for each request.
w.Header().Set(xhttp.AmzRequestID, mustGetRequestID(UTCNow()))
if globalLocalNodeName != "" {
w.Header().Set(xhttp.AmzRequestNodeID, globalLocalNodeNameHex)
w.Header().Set(xhttp.AmzRequestHostID, globalLocalNodeNameHex)
}
h.ServeHTTP(xhttp.NewResponseRecorder(w), r)
})