Skip to content

Commit 814b211

Browse files
authored
fix: Error: socket hang up
The fix proposed in probot#122
1 parent 796a95d commit 814b211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Client {
2727
const req = superagent.post(target).send(data.body)
2828

2929
delete data.body
30+
delete data['content-length']
3031

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

0 commit comments

Comments
 (0)