hyper: pass the CONNECT line to the debug callback

Closes #7887
This commit is contained in:
Daniel Stenberg 2021-10-21 16:03:11 +02:00
parent 09a8b83c2d
commit 5276ec941f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);