bblimke/webmock — pull request #153 by markiz (2012-01-27 19:25:56+00:00)
Title: em_http_request_1_x: use bytesize of message instead of its length for content-length header

Patch is sort of trivial.

In rubies 1.8.x this will have no effect whatsoever
In rubies 1.9.x this fixes problem of receiver's message getting truncated
(since some utf-8 characters are more than 1 byte long)

Spec attached.

NB: I haven't checked 0_x em adapter or any other adapters, but it's possible that this problem exists somewhere else too.