From 028a1786f7cbee5387eda75cfe2bb8ae2956aacb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:08:01 +0000 Subject: [PATCH] Cover If-Range array-first-value semantics Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index c24616c56a..a64279ae0b 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -1092,6 +1092,7 @@ describe("ifRangeSatisfied", () => { it("supports array-valued headers and rejects invalid date forms", () => { const modifiedAt = Date.parse("2026-01-01T12:00:00.000Z"); expect(ifRangeSatisfied(["\"etag\""], "\"etag\"", modifiedAt)).toBe(true); + expect(ifRangeSatisfied(["\"etag\"", "\"other\""], "\"etag\"", modifiedAt)).toBe(true); expect(ifRangeSatisfied("not-a-date", "\"etag\"", modifiedAt)).toBe(false); }); });