diff --git a/lib/loggly/client.js b/lib/loggly/client.js index b57e59a..0f3fef4 100644 --- a/lib/loggly/client.js +++ b/lib/loggly/client.js @@ -157,8 +157,7 @@ Loggly.prototype.log = function (msg, tags, callback) { host: this.host, accept: '*/*', 'user-agent': this.userAgent, - 'content-type': this.json ? 'application/json' : 'text/plain', - 'content-length': Buffer.byteLength(JSON.stringify(msg)) + 'content-type': this.json ? 'application/json' : 'text/plain' } };