mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
Log Range Header if present in the request (#14851)
Add Range header as param to easier debug of Range requests.
This commit is contained in:
@@ -237,6 +237,10 @@ func extractReqParams(r *http.Request) map[string]string {
|
|||||||
"sourceIPAddress": handlers.GetSourceIP(r),
|
"sourceIPAddress": handlers.GetSourceIP(r),
|
||||||
// Add more fields here.
|
// Add more fields here.
|
||||||
}
|
}
|
||||||
|
if rangeField := r.Header.Get(xhttp.Range); rangeField != "" {
|
||||||
|
m["range"] = rangeField
|
||||||
|
}
|
||||||
|
|
||||||
if _, ok := r.Header[xhttp.MinIOSourceReplicationRequest]; ok {
|
if _, ok := r.Header[xhttp.MinIOSourceReplicationRequest]; ok {
|
||||||
m[xhttp.MinIOSourceReplicationRequest] = ""
|
m[xhttp.MinIOSourceReplicationRequest] = ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user