Skip to content

Commit 278d6c0

Browse files
committed
Adjust tests for request body partial processing
1 parent 371e687 commit 278d6c0

File tree

7 files changed

+2201
-552
lines changed

7 files changed

+2201
-552
lines changed

tests/regression/config/10-reqbody-limit-action-forcebodybuf.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
SecRule REQUEST_URI "/test.txt" "id:500219,phase:1,t:none,pass,ctl:forceRequestBodyVariable=On"
149149
),
150150
match_log => {
151-
error => [ qr/ModSecurity: Request body \(Content-Length\) is larger than the configured limit \(16384\)\./, 1 ],
151+
error => [ qr/ModSecurity: Request body \(Content-Length\) is larger than the configured limit \(16384\)\./, 1 ],
152152
debug => [ qr/enable_partial_processing for none reqbody_processor/, 1 ],
153153
},
154154
match_response => {
@@ -157,7 +157,7 @@
157157
request => new HTTP::Request(
158158
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
159159
[
160-
"Content-Type" => "text/plain",
160+
"Content-Type" => "text/plain",
161161
"Content-Length" => "16385",
162162
],
163163
"a" x 16385,

0 commit comments

Comments
 (0)