Skip to content

Commit

Permalink
fix: Error: socket hang up
Browse files Browse the repository at this point in the history
The fix proposed in probot#122
  • Loading branch information
zregvart authored Jan 23, 2020
1 parent 796a95d commit 814b211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Client {
const req = superagent.post(target).send(data.body)

delete data.body
delete data['content-length']

Object.keys(data).forEach(key => {
req.set(key, data[key])
Expand Down

0 comments on commit 814b211

Please sign in to comment.