Send Sec-Ch-Ua http header

This commit is contained in:
Pierre Tachoire committed 2026-04-08 12:11:09 +02:00
1 parent ae9b4d3fc6
commit efb2fa9c22
2 files changed
+13 -1

No files matched your search

+8 -1
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 {