diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2019-06-02 15:16:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-06-02 22:58:04 +0200 |
commit | 2e5ceb3934a7bc5422c5a3a18daafa1b1af02090 (patch) | |
tree | 27006fc16621dabd144bc76b2e2511a1ca5cf94c /CMake | |
parent | 7e590b3ecd2d4c061d8e001b25b869460bbdc560 (diff) | |
download | curl-2e5ceb3934a7bc5422c5a3a18daafa1b1af02090.tar.gz |
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 'CMake')
0 files changed, 0 insertions, 0 deletions