From e89d5a1202f3e00918eb0ea465041dbaa78e75c7 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 10 Jul 2026 09:58:08 +0200 Subject: [PATCH] tests: remove test1701 Test 1701 did a HTTP/2 Upgrade in a HTTP/1.1 POST request. This will no longer be supported in the upcoming nghttp2 release for security reasons (Upgrade requests with body a re messy, error prone and can easily lead to connection confusion). As no other server we have supports this, remove the test. Reported-by: firexinghe on github Fixes #22280 Closes #22291 --- tests/data/Makefile.am | 2 +- tests/data/test1701 | 82 ------------------------------------------ 2 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 tests/data/test1701 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 4ef4f55f95..53a1927146 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -223,7 +223,7 @@ test1669 test1670 test1671 test1672 test1673 test1674 test1675 test1676 \ test1677 test1680 test1681 test1682 test1683 test1684 \ test1685 test1686 \ \ -test1700 test1701 test1702 test1703 test1704 test1705 test1706 test1707 \ +test1700 test1702 test1703 test1704 test1705 test1706 test1707 \ test1708 test1709 test1710 test1711 test1712 test1713 test1714 test1715 \ test1720 test1721 test1722 test1723 test1724 test1725 \ \ diff --git a/tests/data/test1701 b/tests/data/test1701 deleted file mode 100644 index 50e782bed0..0000000000 --- a/tests/data/test1701 +++ /dev/null @@ -1,82 +0,0 @@ - - - - -HTTP -HTTP POST -HTTP/2 - - - -# Server-side - - -HTTP/1.1 200 OK -Date: Tue, 09 Nov 2010 14:49:00 GMT -Server: test-server/fake -Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT -ETag: "21025-dc7-39462498" -Accept-Ranges: bytes -Content-Length: 6 -Connection: close -Content-Type: text/html -Funny-head: yesyes - --foo- - - - -# Client-side - - -h2c - - -http/2 - - -HTTP/2 POST with Upgrade: - - -http://%HOSTIP:%HTTP2PORT/%TESTNUMBER --http2 -d "datatosend" - - - -# Verify data after the test has been "shot" - - -^X-Forwarded-Proto:.* -^Via:.* - - -POST /%TESTNUMBER HTTP/1.1 -Host: %HOSTIP:%HTTP2PORT -User-Agent: curl/%VERSION -Accept: */* -Content-Length: 10 -Content-Type: application/x-www-form-urlencoded - -datatosend - - -HTTP/1.1 101 Switching Protocols -Connection: Upgrade -Upgrade: h2c - -HTTP/2 200%SP -date: Tue, 09 Nov 2010 14:49:00 GMT -last-modified: Tue, 13 Jun 2000 12:10:00 GMT -etag: "21025-dc7-39462498" -accept-ranges: bytes -content-length: 6 -content-type: text/html -funny-head: yesyes -via: 1.1 nghttpx - --foo- - - -s/^server: nghttpx.*\r?\n// - - -