mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Merge pull request #1060 from lightpanda-io/fetch-ua
fetch: init headers w page's client UA
This commit is contained in:
@@ -85,7 +85,7 @@ pub fn fetch(input: RequestInput, options: ?RequestInit, page: *Page) !Env.Promi
|
|||||||
const arena = page.arena;
|
const arena = page.arena;
|
||||||
|
|
||||||
const req = try Request.constructor(input, options, page);
|
const req = try Request.constructor(input, options, page);
|
||||||
var headers = try Http.Headers.init();
|
var headers = try Http.Headers.init(page.http_client.user_agent);
|
||||||
|
|
||||||
// Copy our headers into the HTTP headers.
|
// Copy our headers into the HTTP headers.
|
||||||
var header_iter = req.headers.headers.iterator();
|
var header_iter = req.headers.headers.iterator();
|
||||||
|
|||||||
Reference in New Issue
Block a user