Skip to content

Lightpanda: the headless browser designed for AI and automation

use min expiration in CorsStore merge

Muki Kiboigod6cbea9b1a43
diff --git a/src/network/CorsStore.zig b/src/network/CorsStore.zig
index 82ec7f483..1cdd32901 100644
--- a/src/network/CorsStore.zig
+++ b/src/network/CorsStore.zig
@@ -87,7 +87,7 @@ pub const Entry = struct {
.methods = self.methods.unionWith(new.methods),
.headers_wildcard = self.headers_wildcard or new.headers_wildcard,
.headers = try unionHeaders(allocator, self.headers, new.headers),
- .expires_at = @max(self.expires_at, new.expires_at),
+ .expires_at = @min(self.expires_at, new.expires_at),
};
}