From 5276ec941f09de411d5c00ba2dbc8ac043b705d8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 21 Oct 2021 16:03:11 +0200 Subject: hyper: pass the CONNECT line to the debug callback Closes #7887 --- lib/http_proxy.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 82e282d29..d144990c5 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -816,6 +816,15 @@ static CURLcode CONNECT(struct Curl_easy *data, result = CURLE_OUT_OF_MEMORY; goto error; } + if(data->set.verbose) { + char *se = aprintf("CONNECT %s HTTP/1.1\r\n", hostheader); + if(!se) { + result = CURLE_OUT_OF_MEMORY; + goto error; + } + Curl_debug(data, CURLINFO_HEADER_OUT, se, strlen(se)); + free(se); + } /* Setup the proxy-authorization header, if any */ result = Curl_http_output_auth(data, conn, "CONNECT", HTTPREQ_GET, hostheader, TRUE); -- cgit v1.2.1