phillro/node-elasticsearch-client — pull request #29 by daeq (2012-12-08 10:18:29+00:00)
Title: fixed Content-Length

this.params.data.length returns length in **symbols**, which is not working with non-ascii characters.
Should use Buffer.byteLength to get length in bytes.