mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Set window location on load
Set SUPPRESS_CONNECT_HEADERS option.
This commit is contained in:
@@ -609,6 +609,7 @@ pub const Page = struct {
|
|||||||
self.window.setStorageShelf(
|
self.window.setStorageShelf(
|
||||||
try self.session.storage_shed.getOrPut(try self.origin(self.arena)),
|
try self.session.storage_shed.getOrPut(try self.origin(self.arena)),
|
||||||
);
|
);
|
||||||
|
try self.window.replaceLocation(.{ .url = try self.url.toWebApi(self.arena) });
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const MouseEvent = struct {
|
pub const MouseEvent = struct {
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ pub const Connection = struct {
|
|||||||
// proxy
|
// proxy
|
||||||
if (opts.http_proxy) |proxy| {
|
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_PROXY, proxy.ptr));
|
||||||
|
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SUPPRESS_CONNECT_HEADERS, @as(c_long, 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// tls
|
// tls
|
||||||
|
|||||||
Reference in New Issue
Block a user