mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Print when request is blocked when it is larger than the configuration
This commit is contained in:
parent
1e2f836b32
commit
6e3bb889c4
@ -736,7 +736,7 @@ static int hook_request_late(request_rec *r) {
|
||||
|
||||
if(msr->txcfg->if_limit_action == REQUEST_BODY_LIMIT_ACTION_REJECT) {
|
||||
msr_log(msr, 1, "Request body (Content-Length) is larger than the "
|
||||
"configured limit (%ld). Deny with status (%d)", msr->txcfg->reqbody_limit, r->status);
|
||||
"configured limit (%ld). Deny with status (%d)", msr->txcfg->reqbody_limit, HTTP_REQUEST_ENTITY_TOO_LARGE);
|
||||
return HTTP_REQUEST_ENTITY_TOO_LARGE;
|
||||
} else {
|
||||
msr_log(msr, 1, "Request body (Content-Length) is larger than the "
|
||||
|
Loading…
x
Reference in New Issue
Block a user