Mercurial > hg > nginx-tests
comparison h2.t @ 702:cc2b98d028c8
Tests: fixed HTTP/2 test for CONTINUATION while in header field.
Offset values to split header block were miscalculated.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 21 Sep 2015 13:59:09 +0300 |
parents | e28787665f99 |
children | 626bc3a0fdaa |
comparison
equal
deleted
inserted
replaced
701:bae890b8828d | 702:cc2b98d028c8 |
---|---|
1870 } | 1870 } |
1871 | 1871 |
1872 $input = pack("B*", '001' . ipack(5, $uri->{table_size})) . $input | 1872 $input = pack("B*", '001' . ipack(5, $uri->{table_size})) . $input |
1873 if defined $uri->{table_size}; | 1873 if defined $uri->{table_size}; |
1874 | 1874 |
1875 my @input; | 1875 my @input = map { substr $input, 0, $_, "" } @$split; |
1876 for my $length (@$split) { | |
1877 my $offset = length($input[-1]) || 0; | |
1878 push @input, substr $input, $offset, $length, ""; | |
1879 } | |
1880 push @input, $input; | 1876 push @input, $input; |
1881 | 1877 |
1882 # set length, attach headers, padding, priority | 1878 # set length, attach headers, padding, priority |
1883 | 1879 |
1884 my $hlen = length($input[0]) + $pad + $padlen; | 1880 my $hlen = length($input[0]) + $pad + $padlen; |