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 authored and GitHub committed 2026-03-13 11:26:24 +01:00
commit c3de47de90
1 file changed
+1 -1
+1 -1
View File
@@ -933,7 +933,7 @@ pub const RequestCookie = struct {
if (arr.items.len > 0) {
try arr.append(temp, 0); //null terminate
headers.cookies = @ptrCast(arr.items.ptr);
headers.cookies = @as([*c]const u8, @ptrCast(arr.items.ptr));
}
}
};