Mercurial > hg > nginx-tests
diff h2_headers.t @ 1273:9b737ad4260b
Tests: expect HTTP 400 on HTTP/2 pseudo-header parsing error.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 30 Jan 2018 15:15:33 +0300 |
parents | 366d789f3cbf |
children | 97c8280de681 |
line wrap: on
line diff
--- a/h2_headers.t Mon Jan 29 15:14:18 2018 +0300 +++ b/h2_headers.t Tue Jan 30 15:15:33 2018 +0300 @@ -988,11 +988,16 @@ # client sent invalid :path header -$sid = $s->new_stream({ path => 't1.html' }); -$frames = $s->read(all => [{ type => 'RST_STREAM' }]); +TODO: { +local $TODO = 'not yet' unless $t->has_version('1.13.9'); -($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; -is($frame->{code}, 1, 'invalid path'); +$sid = $s->new_stream({ path => 't1.html' }); +$frames = $s->read(all => [{ sid => $sid, fin => 1 }]); + +($frame) = grep { $_->{type} eq "HEADERS" } @$frames; +is($frame->{headers}->{':status'}, 400, 'invalid path'); + +} ###############################################################################