Skip to content

Lightpanda: the headless browser designed for AI and automation

fix minor compilation issues

Muki Kiboigo7d6299895fcd
diff --git a/src/network/HttpClient.zig b/src/network/HttpClient.zig
index 1a7868c3a..32155136b 100644
--- a/src/network/HttpClient.zig
+++ b/src/network/HttpClient.zig
@@ -905,7 +905,7 @@ fn cacheLookup(self: *Client, transfer: *Transfer) !bool {
out.* = .{ .name = hdr.name, .value = hdr.value };
}
- const cache_result = try cache.get(arena.allocator(), .{
+ const cache_result = cache.get(arena.allocator(), .{
.url = req.url,
.timestamp = lp.datetime.timestamp(.real),
.request_headers = req_headers,
@@ -1004,7 +1004,7 @@ fn cacheStore(self: *Client, transfer: *Transfer) void {
const vary = findHeader(headers, "vary");
const maybe_req = Cache.tryCache(
- arena,
+ arena.allocator(),
lp.datetime.timestamp(.real),
transfer._cache_key,
rh.status,