mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Preallocate memory when SecStreamInBodyInspection is on. 20x speed improvement for 10mb upload. Also simplified modsecurity_request_body_to_stream.
This commit is contained in:
committed by
Felipe Zimmerle
parent
07c3659ddc
commit
afae690655
@@ -283,7 +283,6 @@ apr_status_t read_request_body(modsec_rec *msr, char **error_msg) {
|
||||
}
|
||||
|
||||
if (msr->txcfg->stream_inbody_inspection == 1) {
|
||||
msr->stream_input_length+=buflen;
|
||||
modsecurity_request_body_to_stream(msr, buf, buflen, error_msg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user