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 committed Jan 12, 2021
1 parent 2c34dab commit b5359cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Client {
const req = superagent.post(url.format(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 b5359cc

Please sign in to comment.