dupe url in tryCache

This commit is contained in:
Muki Kiboigo
2026-04-01 08:20:01 -07:00
parent 600f2909fc
commit d707a61646

View File

@@ -144,7 +144,7 @@ pub fn tryCache(
const cc = CacheControl.parse(cache_control orelse return null) orelse return null;
return .{
.url = url,
.url = try arena.dupeZ(u8, url),
.content_type = if (content_type) |ct| try arena.dupe(u8, ct) else "application/octet-stream",
.status = status,
.stored_at = timestamp,