mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
http: handle proxy's request header callback
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user