From b5359ccec34ff4619e20f068df85ccb29a2595f9 Mon Sep 17 00:00:00 2001 From: Zoran Regvart Date: Thu, 23 Jan 2020 13:56:48 +0100 Subject: [PATCH] fix: Error: socket hang up The fix proposed in https://github.com/probot/smee-client/pull/122 --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 64bf7046..13b5a889 100644 --- a/index.ts +++ b/index.ts @@ -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])