From f5bf24ab833a8ff62c854d5e6f1a37043c28ecea Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Thu, 8 Nov 2018 18:43:14 +0000 Subject: [PATCH] fix(server): don't accept ranges (#3870) (#4295) --- packages/server/src/middleware/nuxt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/middleware/nuxt.js b/packages/server/src/middleware/nuxt.js index c11250c210..8fc3876766 100644 --- a/packages/server/src/middleware/nuxt.js +++ b/packages/server/src/middleware/nuxt.js @@ -70,6 +70,7 @@ export default ({ options, nuxt, renderRoute, resources }) => async function nux // Send response res.setHeader('Content-Type', 'text/html; charset=utf-8') + res.setHeader('Accept-Ranges', 'none') // #3870 res.setHeader('Content-Length', Buffer.byteLength(html)) res.end(html, 'utf8') nuxt.callHook('render:routeDone', req.url, result, context)