mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
Switch XHR to new http client
get puppeteer/cdp.js working again make test are all passing
This commit is contained in:
@@ -35,7 +35,7 @@ pub const LightPanda = struct {
|
||||
.thread = null,
|
||||
.running = true,
|
||||
.allocator = allocator,
|
||||
.client = &app.http_client,
|
||||
.client = app.http_client,
|
||||
.uri = std.Uri.parse(URL) catch unreachable,
|
||||
.node_pool = std.heap.MemoryPool(List.Node).init(allocator),
|
||||
};
|
||||
|
||||
@@ -79,7 +79,7 @@ fn TelemetryT(comptime P: type) type {
|
||||
const self: *Self = @alignCast(@ptrCast(ctx));
|
||||
self.record(.{ .navigate = .{
|
||||
.proxy = false,
|
||||
.tls = std.ascii.eqlIgnoreCase(data.url.scheme(), "https"),
|
||||
.tls = std.ascii.startsWithIgnoreCase(data.url, "https://"),
|
||||
} });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user