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()