Fixup cookies management

This commit is contained in:
Nikolay Govorov
2026-03-18 20:49:05 +00:00
parent 16ca8d4b14
commit d33edc5697
7 changed files with 38 additions and 85 deletions

View File

@@ -80,7 +80,7 @@ pub fn init(input: Input, options: ?InitOpts, page: *Page) !js.Promise {
if (request._headers) |h| {
try h.populateHttpHeader(page.call_arena, &headers);
}
try page.headersForRequest(page.arena, request._url, &headers);
try page.headersForRequest(&headers);
if (comptime IS_DEBUG) {
log.debug(.http, "fetch", .{ .url = request._url });