Fix: use send() instead of end() (#161)

This commit is contained in:
Nelson Chan 2021-08-04 11:56:10 +08:00 committed by GitHub
parent 807db8a2d8
commit 655536e457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,8 +96,8 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
app.get("/metrics", basicAuth, prometheusAPIMetrics()) app.get("/metrics", basicAuth, prometheusAPIMetrics())
// Universal Route Handler, must be at the end // Universal Route Handler, must be at the end
app.get("*", function(request, response, next) { app.get("*", function(_request, response) {
response.end(indexHTML) response.send(indexHTML);
}); });
console.log("Adding socket handler") console.log("Adding socket handler")