fix(server): don't accept ranges (#3870) (#4295)

This commit is contained in:
Alexander Lichter 2018-11-08 18:43:14 +00:00 committed by Pooya Parsa
parent b290c078f2
commit f5bf24ab83

View File

@ -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)