mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adapted patch from 977 to fix status failing to report in Nginx auditlogs
This commit is contained in:
parent
2538d90e5f
commit
947cef7c8c
@ -1897,7 +1897,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
||||
|
||||
/* There are no response headers (or the status line) in HTTP 0.9 */
|
||||
if (msr->response_headers_sent) {
|
||||
if (msr->status_line != NULL) {
|
||||
if (msr->status_line != NULL && msr->status_line[0] != '\0') {
|
||||
text = apr_psprintf(msr->mp, "%s %s\n", msr->response_protocol,
|
||||
msr->status_line);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user