diff --git a/src/lib/connectors/http.js b/src/lib/connectors/http.js index fcaf91f3c..7d972a1cd 100644 --- a/src/lib/connectors/http.js +++ b/src/lib/connectors/http.js @@ -185,10 +185,11 @@ HttpConnector.prototype.request = function (params, cb) { request.setHeader('Content-Length', Buffer.byteLength(params.body, 'utf8')); request.end(params.body); } else { + request.setHeader('Content-Length', 0); request.end(); } return function () { request.abort(); }; -}; \ No newline at end of file +};