Merge pull request #1062 from lightpanda-io/fetch_newHeaders

use client.newHeaders
This commit is contained in:
Karl Seguin
2025-09-18 15:56:35 +08:00
committed by GitHub

View File

@@ -85,7 +85,7 @@ pub fn fetch(input: RequestInput, options: ?RequestInit, page: *Page) !Env.Promi
const arena = page.arena;
const req = try Request.constructor(input, options, page);
var headers = try Http.Headers.init(page.http_client.user_agent);
var headers = try page.http_client.newHeaders();
// Copy our headers into the HTTP headers.
var header_iter = req.headers.headers.iterator();