# HG changeset patch # User Sergey Kandaurov # Date 1517314533 -10800 # Node ID 9b737ad4260b0ad4503309a94439752ff90fc9f7 # Parent 01010d9021b87f6740f0300bf21b67d21e312246 Tests: expect HTTP 400 on HTTP/2 pseudo-header parsing error. diff --git a/h2_headers.t b/h2_headers.t --- 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'); + +} ###############################################################################