mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 17:46:32 -04:00
Send Sec-Ch-Ua http header
This commit is contained in:
@@ -62,7 +62,14 @@ pub const Headers = struct {
|
||||
if (header_list == null) {
|
||||
return error.OutOfMemory;
|
||||
}
|
||||
return .{ .headers = header_list };
|
||||
|
||||
// Always add sec-CH-UA header
|
||||
const updated_headers = libcurl.curl_slist_append(header_list, Config.HttpHeaders.sec_ch_ua);
|
||||
if (updated_headers == null) {
|
||||
return error.OutOfMemory;
|
||||
}
|
||||
|
||||
return .{ .headers = updated_headers };
|
||||
}
|
||||
|
||||
pub fn deinit(self: *const Headers) void {
|
||||
|
||||
Reference in New Issue
Block a user