peerigon/phridge — pull request #2 by yesyo (2014-07-01 13:13:25+00:00)
Title: Fixed wrong content length when request body contains non-ascii characters

Content-Length is bytes and not necessarily string length. Using Buffer.byteLength(string) will always be correct. Ref stackoveflow question http://stackoverflow.com/questions/18692580/node-js-post-causes-error-socket-hang-up-code-econnreset