mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(cli): loading html fix (#288)
This commit is contained in:
parent
3829a21729
commit
1370dd6719
@ -19,7 +19,7 @@ export function createLoadingHandler (message: string, retryAfter = 60): Request
|
||||
res.setHeader('Content-Type', 'text/html; charset=UTF-8')
|
||||
res.statusCode = 503 /* Service Unavailable */
|
||||
res.setHeader('Retry-After', retryAfter)
|
||||
res.end(`<!DOCTYPE html><html><head><meta http-equiv="refresh" content="${retryAfter || 60}"><head><body>${message}`)
|
||||
res.end(`<!DOCTYPE html><html><head><meta http-equiv="refresh" content="${retryAfter || 60}"></head><body>${message}</body>`)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user