We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ef1de commit 55e2738Copy full SHA for 55e2738
scripts/js-api-tests.js
@@ -3855,14 +3855,14 @@ let serveTests = {
3855
// Subtract 1 because range headers are inclusive on both ends
3856
Range: `bytes=${start}-${start + length - 1}`,
3857
})
3858
- delete fetched.headers.date
+ delete fetched.headers.date // This changes every time
3859
+ delete fetched.headers.connection // Node v19+ no longer sends this
3860
const expected = buffer.slice(start, start + length)
3861
expected.headers = {
3862
'access-control-allow-origin': '*',
3863
'content-length': `${length}`,
3864
'content-range': `bytes ${start}-${start + length - 1}/${byteCount}`,
3865
'content-type': 'application/octet-stream',
- 'connection': 'close',
3866
}
3867
assert.deepStrictEqual(fetched, expected)
3868
0 commit comments