Skip to content

Commit

Permalink
Updates node-fetch to version 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
barslev committed Mar 19, 2020
1 parent a2edd1e commit 2f94af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lodash.clonedeep": "^4.5.0",
"lodash.merge": "^4.6.0",
"lowdb": "^0.16.2",
"node-fetch": "^1.7.1",
"node-fetch": "^2.0.0",
"pg": "^7.4.0",
"prompt": "^1.0.0",
"s3": "^4.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ping (job, options) {

var headers = new fetch.Headers()
for(var i in headerOptions) {
headers.set(i, headerOptions[i])
try { headers.set(i, headerOptions[i]) } catch (_e) {};
}

requestOptions.headers = headers
Expand Down

0 comments on commit 2f94af5

Please sign in to comment.