Merge pull request #1810 from lightpanda-io/fix_cookie_loading

Ensure valid cookie isn't interpreted as null
This commit is contained in:
Pierre Tachoire
2026-03-13 11:26:24 +01:00
committed by GitHub

View File

@@ -933,7 +933,7 @@ pub const RequestCookie = struct {
if (arr.items.len > 0) { if (arr.items.len > 0) {
try arr.append(temp, 0); //null terminate try arr.append(temp, 0); //null terminate
headers.cookies = @ptrCast(arr.items.ptr); headers.cookies = @as([*c]const u8, @ptrCast(arr.items.ptr));
} }
} }
}; };