Skip to content

Commit 89ef255

Browse files
Merge pull request #1060 from lightpanda-io/fetch-ua
fetch: init headers w page's client UA
2 parents 2d24e3c + 4870125 commit 89ef255

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();
88+
var headers = try Http.Headers.init(page.http_client.user_agent);
8989

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

0 commit comments

Comments
 (0)