Assert mismatched If-None-Match keeps ranged 206 flow

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 04:36:43 +00:00
1 parent 482aeb7c57
commit 738a1de007
1 file changed
+11
+11
View File
@@ -803,6 +803,17 @@ async function main() {
"Smoke test failed: expected no content-range on wildcard conditional ranged response.",
);
}
const mismatchConditionalRangedAsset = await fetch(assetUrl, {
headers: {
Range: `bytes=0-${rangeEnd}`,
"If-None-Match": "\"definitely-different-etag\"",
},
});
if (mismatchConditionalRangedAsset.status !== 206) {
throw new Error(
`Smoke test failed: expected mismatched conditional ranged asset status 206, received ${mismatchConditionalRangedAsset.status}.`,
);
}
const ifRangeEtagAsset = await fetch(assetUrl, {
headers: {
Range: `bytes=0-${rangeEnd}`,