mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05: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