larafale/mangopay — pull request #9 by yaiza-bailen (2014-10-14 12:33:09+00:00)
Title: Changed the way of calculating Content-length header for http request with Express

Content-Length header should be calculated like this:

'Content-Length': Buffer.byteLength(requestData, 'utf-8')

As per https://github.com/strongloop/express/issues/1870

If this is not changed, errors are thrown when using non-ASCII characters.