mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-04 00:20:32 +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;
|
const cc = CacheControl.parse(cache_control orelse return null) orelse return null;
|
||||||
|
|
||||||
return .{
|
return .{
|
||||||
.url = url,
|
.url = try arena.dupeZ(u8, url),
|
||||||
.content_type = if (content_type) |ct| try arena.dupe(u8, ct) else "application/octet-stream",
|
.content_type = if (content_type) |ct| try arena.dupe(u8, ct) else "application/octet-stream",
|
||||||
.status = status,
|
.status = status,
|
||||||
.stored_at = timestamp,
|
.stored_at = timestamp,
|
||||||
|
|||||||
Reference in New Issue
Block a user