Skip to content

Commit

Permalink
🐛 fix TypeError: reject.err is not a function (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
idebeijer authored Apr 12, 2023
1 parent 8a95768 commit f6ca0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async function fetchHttps(url, options = {}, body = undefined) {
})

req.on('error', (error) => {
reject.err(error)
reject(error)
})
if (body) {
req.write(body)
Expand Down

0 comments on commit f6ca0a1

Please sign in to comment.