From 95b52ecb471f988ece194417e87f5a8e599f1aae Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:15:48 +0000 Subject: [PATCH] Assert wildcard If-Match preserves ranged responses Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 6025caca37..3d38d4a450 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -419,6 +419,17 @@ async function main() { `Smoke test failed: expected wildcard If-Match status 200, received ${ifMatchWildcardAsset.status}.`, ); } + const ifMatchWildcardRangedAsset = await fetch(assetUrl, { + headers: { + Range: "bytes=0-15", + "If-Match": "*", + }, + }); + if (ifMatchWildcardRangedAsset.status !== 206) { + throw new Error( + `Smoke test failed: expected wildcard If-Match ranged status 206, received ${ifMatchWildcardRangedAsset.status}.`, + ); + } if (ifMatchMismatchAsset.headers.get("etag") !== assetEtag) { throw new Error("Smoke test failed: expected ETag on If-Match mismatch response."); }