Skip to content

Commit 7802a1b

Browse files
authored
Merge pull request #1062 from lightpanda-io/fetch_newHeaders
use client.newHeaders
2 parents 89ef255 + f6ed706 commit 7802a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/fetch/fetch.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub fn fetch(input: RequestInput, options: ?RequestInit, page: *Page) !Env.Promi
8585
const arena = page.arena;
8686

8787
const req = try Request.constructor(input, options, page);
88-
var headers = try Http.Headers.init(page.http_client.user_agent);
88+
var headers = try page.http_client.newHeaders();
8989

9090
// Copy our headers into the HTTP headers.
9191
var header_iter = req.headers.headers.iterator();

0 commit comments

Comments
 (0)