mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
add correct HostId instead of deploymentId for error responses (#16686)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user