mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:23:44 +03:00
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
This commit is contained in:
parent
39036c9021
commit
a186ecf4bf
15 changed files with 84 additions and 29 deletions
|
|
@ -104,7 +104,7 @@ class TestProxyAuth:
|
|||
r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
|
||||
extra_args=xargs)
|
||||
# expect "COULD_NOT_CONNECT"
|
||||
r.check_response(exitcode=56, http_status=None)
|
||||
r.check_response(exitcode=7, http_status=None)
|
||||
|
||||
def test_13_06_tunnel_http_auth(self, env: Env, httpd, configures_httpd):
|
||||
self.httpd_configure(env, httpd)
|
||||
|
|
@ -133,7 +133,7 @@ class TestProxyAuth:
|
|||
r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True,
|
||||
extra_args=xargs)
|
||||
# expect "COULD_NOT_CONNECT"
|
||||
r.check_response(exitcode=56, http_status=None)
|
||||
r.check_response(exitcode=7, http_status=None)
|
||||
assert self.get_tunnel_proto_used(r) == tunnel
|
||||
|
||||
@pytest.mark.skipif(condition=not Env.have_nghttpx(), reason="no nghttpx available")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue