mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-16 16:01:30 -04:00
don't store network in CorsGate
This commit is contained in:
2 files changed
+1
-5
No files matched your search
@@ -33,7 +33,6 @@ const Allocator = std.mem.Allocator;
|
||||
|
||||
const CorsGate = @This();
|
||||
|
||||
network: *Network,
|
||||
single_flight: SingleFlight,
|
||||
|
||||
// CORS Request Headers
|
||||
|
||||
@@ -237,10 +237,7 @@ pub fn init(self: *Client, app: *lp.App) !void {
|
||||
.network = network,
|
||||
.single_flight = .init(allocator),
|
||||
},
|
||||
.cors = .{
|
||||
.network = network,
|
||||
.single_flight = .init(allocator),
|
||||
},
|
||||
.cors = .{ .single_flight = .init(allocator) },
|
||||
.url_blocklist = url_blocklist,
|
||||
.arena_pool = &app.arena_pool,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user