http: handle proxy's request header callback

This commit is contained in:
Pierre Tachoire
2025-08-21 15:09:07 +02:00
parent 5e78a26e3d
commit e2320ebe66
2 changed files with 30 additions and 9 deletions

View File

@@ -116,7 +116,6 @@ pub const Connection = struct {
var use_proxy = false;
if (opts.http_proxy) |proxy| {
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY, proxy.ptr));
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SUPPRESS_CONNECT_HEADERS, @as(c_long, 1)));
use_proxy = true;
}