This commit is contained in:
sjorsdonkers
2025-08-12 14:40:23 +02:00
parent 03694b54f0
commit 77eee7f087
5 changed files with 31 additions and 24 deletions

View File

@@ -224,6 +224,7 @@ pub const Headers = struct {
}
pub fn add(self: *Headers, header: [*c]const u8) !void {
// Copies the value
const updated_headers = c.curl_slist_append(self.headers, header);
if (updated_headers == null) return error.OutOfMemory;
self.headers = updated_headers;