use min expiration in CorsStore merge

This commit is contained in:
Muki Kiboigo committed 2026-09-23 07:58:48 -07:00
1 parent 24ef506c91
commit d6cbea9b1a
1 file changed
+1 -1
+1 -1
View File
@@ -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),
};
}