changeset 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 01010d9021b8
children 0f0ad7acb314
files h2_headers.t
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/h2_headers.t
+++ b/h2_headers.t
@@ -988,11 +988,16 @@ is($frame->{headers}->{':status'}, 400, 
 
 # 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');
+
+}
 
 ###############################################################################