diff options
author | James M Snell <jasnell@gmail.com> | 2017-07-22 09:20:53 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-08-04 12:56:45 -0700 |
commit | d6a774b1bd2c7ccbd783b06a95f6eeeb8dca210c (patch) | |
tree | a8d698a4f64643da65240917cb971c9377a1575b /test/parallel/test-http2-multi-content-length.js | |
parent | 953458f645697fee420a2bb5e24038f3a7bc44df (diff) | |
download | android-node-v8-d6a774b1bd2c7ccbd783b06a95f6eeeb8dca210c.tar.gz android-node-v8-d6a774b1bd2c7ccbd783b06a95f6eeeb8dca210c.tar.bz2 android-node-v8-d6a774b1bd2c7ccbd783b06a95f6eeeb8dca210c.zip |
http2: add range support for respondWith{File|FD}
* respondWithFD now supports optional statCheck
* respondWithFD and respondWithFile both support offset/length for
range requests
* Fix linting nits following most recent update
PR-URL: https://github.com/nodejs/node/pull/14239
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-multi-content-length.js')
-rw-r--r-- | test/parallel/test-http2-multi-content-length.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-multi-content-length.js b/test/parallel/test-http2-multi-content-length.js index 5dcd56990b..9ab1d48c21 100644 --- a/test/parallel/test-http2-multi-content-length.js +++ b/test/parallel/test-http2-multi-content-length.js @@ -47,7 +47,7 @@ server.listen(0, common.mustCall(() => { // Request 3 will fail because nghttp2 does not allow the content-length // header to be set for non-payload bearing requests... - const req3 = client.request({ 'content-length': 1}); + const req3 = client.request({ 'content-length': 1 }); req3.resume(); req3.on('end', common.mustCall(maybeClose)); req3.on('error', common.expectsError({ |