Previously it was using String#size which represents the number of characters in the string, rather than the number of bytes which content-length expects. This previously hasn't been discovered due to there not being a difference between #size and #bytesize for the more common characters.
Fixes #287
Previously it was using
String#size
which represents the number of characters in the string, rather than the number of bytes whichcontent-length
expects. This previously hasn't been discovered due to there not being a difference between#size
and#bytesize
for the more common characters.