mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-01 18:06:46 +00:00
dupe url in tryCache
This commit is contained in:
2
src/network/cache/Cache.zig
vendored
2
src/network/cache/Cache.zig
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user