fix(cli): loading html fix (#288)

This commit is contained in:
Daniel Roe 2021-06-30 11:26:11 +01:00 committed by GitHub
parent 3829a21729
commit 1370dd6719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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