From bcdae9fee9389d2e5bdf9b2d1c19d69a4497b900 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 17 Sep 2020 09:53:21 +0900 Subject: [PATCH] be able to use special characters --- lib/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index 6479c37..059cb2a 100644 --- a/lib/client.js +++ b/lib/client.js @@ -42,8 +42,7 @@ BaseClient.prototype.request = function(options, data, fn) { headers: { authorization: this.authHeader, "content-type": "application/json", - "user-agent": userAgent, - "content-length": typeof data === "string" ? data.length : 0 + "user-agent": userAgent }, agent: (this.proxy) ? new HttpsProxyAgent(this.proxy) : null }, options);