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-compat-serverresponse-writehead.js | |
parent | 953458f645697fee420a2bb5e24038f3a7bc44df (diff) | |
download | node-new-d6a774b1bd2c7ccbd783b06a95f6eeeb8dca210c.tar.gz |
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-compat-serverresponse-writehead.js')
-rw-r--r-- | test/parallel/test-http2-compat-serverresponse-writehead.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-compat-serverresponse-writehead.js b/test/parallel/test-http2-compat-serverresponse-writehead.js index b4c531d339..721b84ca3e 100644 --- a/test/parallel/test-http2-compat-serverresponse-writehead.js +++ b/test/parallel/test-http2-compat-serverresponse-writehead.js @@ -13,7 +13,7 @@ server.listen(0, common.mustCall(function() { server.once('request', common.mustCall(function(request, response) { response.setHeader('foo-bar', 'def456'); response.writeHead(500); - response.writeHead(418, {'foo-bar': 'abc123'}); // Override + response.writeHead(418, { 'foo-bar': 'abc123' }); // Override response.on('finish', common.mustCall(function() { assert.doesNotThrow(() => { response.writeHead(300); }); |