mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05: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:
parent
3e3ff2a70b
commit
c59d2a6288
@ -237,6 +237,10 @@ func extractReqParams(r *http.Request) map[string]string {
|
||||
"sourceIPAddress": handlers.GetSourceIP(r),
|
||||
// Add more fields here.
|
||||
}
|
||||
if rangeField := r.Header.Get(xhttp.Range); rangeField != "" {
|
||||
m["range"] = rangeField
|
||||
}
|
||||
|
||||
if _, ok := r.Header[xhttp.MinIOSourceReplicationRequest]; ok {
|
||||
m[xhttp.MinIOSourceReplicationRequest] = ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user