]> git.ipfire.org Git - thirdparty/curl.git/commit
proxy: chunked response, error code
authorStefan Eissing <stefan@eissing.org>
Tue, 24 Mar 2026 09:03:18 +0000 (10:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Mar 2026 11:16:21 +0000 (12:16 +0100)
commita186ecf4bf0c8ebb3a9a826155b3392164ec257a
tree74360929c009fc64623034344ce69e79e991c442
parent39036c90216e059bbee64b86b198eae3135e0cda
proxy: chunked response, error code

Add test1715 to check proper handling of chunked transfer
encoding in CONNECT responses. Change proxy error code from
56 (RECV_ERROR) for everything to 7 (COULDNT_CONNECT) when
the server response could be read successfully, but establishing
the connection is not possible (http status code wrong).

Adapt several test expectations from 56 to 7.

Closes #21084
15 files changed:
lib/cf-h1-proxy.c
lib/cf-h2-proxy.c
tests/data/Makefile.am
tests/data/test1059
tests/data/test1715 [new file with mode: 0644]
tests/data/test217
tests/data/test287
tests/data/test302
tests/data/test440
tests/data/test441
tests/data/test493
tests/data/test718
tests/data/test749
tests/data/test94
tests/http/test_13_proxy_auth.py