Lightpanda: the headless browser designed for AI and automation
get rid of blocked on CorsGate check result
Muki Kiboigocf37a94f16b7
diff --git a/src/network/CorsGate.zig b/src/network/CorsGate.zigindex 53d98a7ec..cb97dc2e1 100644--- a/src/network/CorsGate.zig+++ b/src/network/CorsGate.zig@@ -112,7 +112,7 @@ fn requiresPreflight(transfer: *const Transfer) bool {return false;}-const Result = enum { allowed, blocked, pending };+const Result = enum { allowed, pending };pub fn check(self: *CorsGate, transfer: *Transfer) !Result {const req = &transfer.req;diff --git a/src/network/HttpClient.zig b/src/network/HttpClient.zigindex 891c5e9dc..4734588dc 100644--- a/src/network/HttpClient.zig+++ b/src/network/HttpClient.zig@@ -1031,7 +1031,6 @@ fn pipeline(self: *Client, transfer: *Transfer, from: SubmitFrom) !void {if (self.obey_cors and !transfer.req.internal) {switch (try self.cors.check(transfer)) {.allowed => {},- .blocked => return transfer.failAsync(error.CorsBlocked),.pending => return,}}