mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-01 18:06:46 +00:00
ensure capacity of pending cache body
This commit is contained in:
@@ -1457,6 +1457,9 @@ pub const Transfer = struct {
|
||||
|
||||
transfer.pending_cache_metadata = cm;
|
||||
transfer.pending_cache_metadata.?.headers = header_list.items;
|
||||
if (transfer.getContentLength()) |cl| {
|
||||
try transfer.pending_cache_body.ensureTotalCapacity(allocator, cl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user