mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Revert "Fix Chuncked string case sensitive issue"
This reverts commit 16a815a3c2735f62238ef99af26090a2b8430d3d.
This commit is contained in:
parent
16a815a3c2
commit
3901128f17
@ -297,7 +297,7 @@ apr_status_t modsecurity_tx_init(modsec_rec *msr) {
|
|||||||
if (msr->request_content_length == -1) {
|
if (msr->request_content_length == -1) {
|
||||||
/* There's no C-L, but is chunked encoding used? */
|
/* There's no C-L, but is chunked encoding used? */
|
||||||
char *transfer_encoding = (char *)apr_table_get(msr->request_headers, "Transfer-Encoding");
|
char *transfer_encoding = (char *)apr_table_get(msr->request_headers, "Transfer-Encoding");
|
||||||
if ((transfer_encoding != NULL)&&(m_strcasestr(transfer_encoding, "chunked") != NULL)) {
|
if ((transfer_encoding != NULL)&&(strstr(transfer_encoding, "chunked") != NULL)) {
|
||||||
msr->reqbody_should_exist = 1;
|
msr->reqbody_should_exist = 1;
|
||||||
msr->reqbody_chunked = 1;
|
msr->reqbody_chunked = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user