This commit is contained in:
Kevin Jahns 2021-01-06 13:22:50 +01:00
parent 3ab927f38a
commit 3c38a81327
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ const callbackRequest = (url, timeout, data) => {
'Content-Length': data.length
}
}
var req = http.request(options)
const req = http.request(options)
req.on('timeout', () => {
console.warn('Callback request timed out.')
req.abort()

View File

@ -29,6 +29,6 @@ server.on('upgrade', (request, socket, head) => {
wss.handleUpgrade(request, socket, head, handleAuth)
})
server.listen({host, port})
server.listen({ host, port })
console.log(`running at '${host}' on port ${port}`)