Send Sec-Ch-Ua http header

This commit is contained in:
Pierre Tachoire
2026-04-07 17:42:31 +02:00
parent ae9b4d3fc6
commit efb2fa9c22
2 changed files with 13 additions and 1 deletions

View File

@@ -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 {