mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
parent
88f98fb61d
commit
32c6d39358
@ -315,7 +315,7 @@ export default class Renderer extends Tapable {
|
||||
const sendResponse = (content, type = 'text/html') => {
|
||||
// Set Headers
|
||||
res.statusCode = err.statusCode
|
||||
res.statusMessage = this.options.debug ? err.message : err.name
|
||||
res.statusMessage = err.name
|
||||
res.setHeader('Content-Type', type + '; charset=utf-8')
|
||||
res.setHeader('Content-Length', Buffer.byteLength(content))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user