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])