dbalatero/typhoeus — pull request #124 by dlamacchia (2011-10-31 19:14:07+00:00)
Title: Use bytesize instead of length to determine Content-length

In ruby 1.9.2, for strings, `length` returns the number of characters whereas `bytesize` returns the number of bytes. When posting data, we want to use `bytesize` to correctly set the Content-length header to correctly handle non-ASCII content, otherwise the data can be truncated.