Skip to content

Commit 5d010bb

Browse files
defanatorFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Tests: fixed request body tests for HTTP/2 without preread
1 parent fba58d5 commit 5d010bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/modsecurity-request-body-h2.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ like($frame->{data}, qr/TEST-OK-IF-YOU-SEE-THIS/, "POST with auth_request (reque
201201

202202
$s = Test::Nginx::HTTP2->new();
203203
$sid = $s->new_stream({ method => 'POST', path => '/useauth', 'body_more' => 1 });
204-
$s->h2_body('BODY' x 15);
204+
$s->h2_body('BODY' x 15, { 'body_more' => 1 });
205205
select undef, undef, undef, 0.1;
206206
$s->h2_body('BODY');
207207
$frames = $s->read(all => [{ sid => $sid, fin => 1 }]);
@@ -210,7 +210,7 @@ like($frame->{data}, qr/TEST-OK-IF-YOU-SEE-THIS/, "POST with auth_request (reque
210210

211211
$s = Test::Nginx::HTTP2->new();
212212
$sid = $s->new_stream({ method => 'POST', path => '/useauth', 'body_more' => 1 });
213-
$s->h2_body('BODY' x 256);
213+
$s->h2_body('BODY' x 256, { 'body_more' => 1 });
214214
select undef, undef, undef, 0.1;
215215
$s->h2_body('BODY');
216216
$frames = $s->read(all => [{ sid => $sid, fin => 1 }]);

0 commit comments

Comments
 (0)