mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
add missing fields in audit logs for non-compressed handlers (#16328)
This commit is contained in:
@@ -102,6 +102,11 @@ func AuditLog(ctx context.Context, w http.ResponseWriter, r *http.Request, reqCl
|
||||
if rw, ok := v.ResponseWriter.(*xhttp.ResponseRecorder); ok {
|
||||
st = rw
|
||||
}
|
||||
case *gzhttp.NoGzipResponseWriter:
|
||||
// the writer may be obscured by no-gzip response writer
|
||||
if rw, ok := v.ResponseWriter.(*xhttp.ResponseRecorder); ok {
|
||||
st = rw
|
||||
}
|
||||
}
|
||||
if st != nil {
|
||||
statusCode = st.StatusCode
|
||||
|
||||
Reference in New Issue
Block a user