Skip to content

Commit b5359cc

Browse files
committed
fix: Error: socket hang up
The fix proposed in probot#122
1 parent 2c34dab commit b5359cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Client {
4646
const req = superagent.post(url.format(target)).send(data.body)
4747

4848
delete data.body
49+
delete data['content-length']
4950

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

0 commit comments

Comments
 (0)