Mercurial > hg > nginx-tests
changeset 1690:29f0e926c15f
Tests: removed HTTP/2 Upgrade-based negotiation tests.
The HTTP/1.1 Upgrade mechanism is no longer specified in the current http2bis.
See also: https://github.com/BishopFox/h2csmuggler
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 25 May 2021 16:50:14 +0300 |
parents | dbd19195df8a |
children | 0d8531f744bc |
files | h2.t |
diffstat | 1 files changed, 1 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t Mon May 24 22:09:54 2021 +0300 +++ b/h2.t Tue May 25 16:50:14 2021 +0300 @@ -26,7 +26,7 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite charset gzip/) - ->plan(144); + ->plan(142); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -145,25 +145,6 @@ ############################################################################### -# Upgrade mechanism - -my $r = http(<<EOF); -GET / HTTP/1.1 -Host: localhost -Connection: Upgrade, HTTP2-Settings -Upgrade: h2c -HTTP2-Settings: AAMAAABkAAQAAP__ - -EOF - -SKIP: { -skip 'no Upgrade-based negotiation', 2 if $r !~ m!HTTP/1.1 101!; - -like($r, qr!Connection: Upgrade!, 'upgrade - connection'); -like($r, qr!Upgrade: h2c!, 'upgrade - token'); - -} - # SETTINGS my $s = Test::Nginx::HTTP2->new(port(8080), pure => 1);