aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2019-06-02 15:16:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-06-02 22:58:04 +0200
commit2e5ceb3934a7bc5422c5a3a18daafa1b1af02090 (patch)
tree27006fc16621dabd144bc76b2e2511a1ca5cf94c /tests
parent7e590b3ecd2d4c061d8e001b25b869460bbdc560 (diff)
http: don't parse body-related headers bodyless responses
Responses with status codes 1xx, 204 or 304 don't have a response body. For these, don't parse these headers: - Content-Encoding - Content-Length - Content-Range - Last-Modified - Transfer-Encoding This change ensures that HTTP/2 upgrades work even if a "Content-Length: 0" or a "Transfer-Encoding: chunked" header is present. Co-authored-by: Daniel Stenberg Closes #3702 Fixes #3968 Closes #3977
Diffstat (limited to 'tests')
-rw-r--r--tests/data/test14296
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/data/test1429 b/tests/data/test1429
index 20b031a1e..b6a66c75f 100644
--- a/tests/data/test1429
+++ b/tests/data/test1429
@@ -9,7 +9,7 @@ HTTP/0.9
<reply>
<data nocheck="yes">
-HTTP/1.1 1234 OK
+HTTP/1.1 2345 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
@@ -43,7 +43,7 @@ http://%HOSTIP:%HTTPPORT/1429 --write-out '%{response_code}' --http0.9
# Verify data after the test has been "shot"
<verify>
<stdout nonewline="yes">
-HTTP/1.1 1234 OK
+HTTP/1.1 2345 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
@@ -55,7 +55,7 @@ Content-Type: text/html
Funny-head: yesyes
-foo-
-123
+234
</stdout>
<strip>
^User-Agent:.*