diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-06-08 23:30:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-10 08:42:27 +0200 |
commit | c214a6a17b2b6f6e4720c40cec9a061b8504daf0 (patch) | |
tree | 3871e7f35065d7e2870829e6ce3678c1fba3ba57 /tests | |
parent | aeb064db032f7663e9d98b78b85e4bbfbae8b045 (diff) | |
download | curl-c214a6a17b2b6f6e4720c40cec9a061b8504daf0.tar.gz |
c-hyper: abort CONNECT response reading early on non 2xx responses
Fixes test 493
Closes #7209
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/test493 | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/tests/data/test493 b/tests/data/test493 index acce50b68..142b0c1c5 100644 --- a/tests/data/test493 +++ b/tests/data/test493 @@ -1,6 +1,7 @@ <testcase> <info> <keywords> +HTTP HSTS url_effective </keywords> @@ -9,16 +10,16 @@ url_effective <reply> # we use this as response to a CONNECT -<data nocheck="yes"> -HTTP/1.1 403 not OK at all -Date: Tue, 09 Nov 2010 14:49:00 GMT -Server: test-server/fake -Content-Length: 6 -Connection: close -Funny-head: yesyes - +<connect nocheck="yes"> +HTTP/1.1 403 not OK at all
+Date: Tue, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Content-Length: 6
+Connection: close
+Funny-head: yesyes
+
-foo- -</data> +</connect> </reply> <client> @@ -53,6 +54,13 @@ Proxy-Connection: Keep-Alive </protocol> <stdout> +HTTP/1.1 403 not OK at all
+Date: Tue, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Content-Length: 6
+Connection: close
+Funny-head: yesyes
+
https://this.hsts.example/%TESTNUMBER </stdout> # Proxy CONNECT aborted |