We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f3e241 commit e9716d1Copy full SHA for e9716d1
test/range.test.js
@@ -101,7 +101,11 @@ test('partial range', (t) => {
101
t.equal(res.statusCode, 206, 'partial content status code');
102
t.equal(eol.lf(body), 'e!!</b>\n');
103
t.equal(parseInt(res.headers['content-length'], 10), body.length);
104
- t.equal(res.headers['content-range'], 'bytes 3-10/11');
+ if (eol.lf(body) != body) { // on Windows, depending on Git settings
105
+ t.equal(res.headers['content-range'], 'bytes 3-11/12');
106
+ } else {
107
+ t.equal(res.headers['content-range'], 'bytes 3-10/11');
108
+ }
109
});
110
111
0 commit comments