diff --git a/index.ts b/index.ts index 64bf7046..761c4a13 100644 --- a/index.ts +++ b/index.ts @@ -46,7 +46,8 @@ 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]) })