summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-compat-serverresponse-statusmessage.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-07-22 09:20:53 -0700
committerJames M Snell <jasnell@gmail.com>2017-08-04 12:56:45 -0700
commitd6a774b1bd2c7ccbd783b06a95f6eeeb8dca210c (patch)
treea8d698a4f64643da65240917cb971c9377a1575b /test/parallel/test-http2-compat-serverresponse-statusmessage.js
parent953458f645697fee420a2bb5e24038f3a7bc44df (diff)
downloadandroid-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-compat-serverresponse-statusmessage.js')
-rw-r--r--test/parallel/test-http2-compat-serverresponse-statusmessage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http2-compat-serverresponse-statusmessage.js b/test/parallel/test-http2-compat-serverresponse-statusmessage.js
index 08822c9939..c9c5b5a013 100644
--- a/test/parallel/test-http2-compat-serverresponse-statusmessage.js
+++ b/test/parallel/test-http2-compat-serverresponse-statusmessage.js
@@ -8,7 +8,7 @@ const h2 = require('http2');
// Http2ServerResponse.writeHead should accept an optional status message
const unsupportedWarned = common.mustCall(1);
-process.on('warning', ({name, message}) => {
+process.on('warning', ({ name, message }) => {
const expectedMessage =
'Status message is not supported by HTTP/2 (RFC7540 8.1.2.4)';
if (name === 'UnsupportedWarning' && message === expectedMessage)
@@ -21,7 +21,7 @@ server.listen(0, common.mustCall(function() {
server.once('request', common.mustCall(function(request, response) {
const statusCode = 200;
const statusMessage = 'OK';
- const headers = {'foo-bar': 'abc123'};
+ const headers = { 'foo-bar': 'abc123' };
response.writeHead(statusCode, statusMessage, headers);
response.on('finish', common.mustCall(function() {