summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-getpackedsettings.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-getpackedsettings.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-getpackedsettings.js')
-rw-r--r--test/parallel/test-http2-getpackedsettings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-getpackedsettings.js b/test/parallel/test-http2-getpackedsettings.js
index 0c1a1bccee..0e3744fc27 100644
--- a/test/parallel/test-http2-getpackedsettings.js
+++ b/test/parallel/test-http2-getpackedsettings.js
@@ -122,7 +122,7 @@ assert.doesNotThrow(() => http2.getPackedSettings({ enablePush: false }));
const packed = Buffer.from([0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFF]);
assert.throws(() => {
- http2.getUnpackedSettings(packed, {validate: true});
+ http2.getUnpackedSettings(packed, { validate: true });
}, common.expectsError({
code: 'ERR_HTTP2_INVALID_SETTING_VALUE',
type: RangeError,