Improvements in detection only

This commit is contained in:
brenosilva 2011-04-05 01:53:16 +00:00
parent cb3353f13d
commit ae006f7a81

View File

@ -771,8 +771,8 @@ static int hook_request_late(request_rec *r) {
break;
case -5 : /* Request body limit reached. */
msr->inbound_error = 1;
r->connection->keepalive = AP_CONN_CLOSE;
if(msr->txcfg->if_limit_action == REQUEST_BODY_LIMIT_ACTION_REJECT) {
r->connection->keepalive = AP_CONN_CLOSE;
if (my_error_msg != NULL) {
msr_log(msr, 1, "%s. Deny with code (%d)", my_error_msg, HTTP_REQUEST_ENTITY_TOO_LARGE);
}