Bug #559: WEBrick should use #bytesize instead of #size
http://redmine.ruby-lang.org/issues/show/559

Author: raspberry lemon
Status: Open, Priority: Normal
Category: lib

Currently, WEBrick uses #size to figure out the content-length headers, which messes up responses with multibyte characters.

The attached patch stupidly replaces all instances of '.size' with '.bytesize'. It fixes the problem and doesn't appear to cause any problems.


----------------------------------------
http://redmine.ruby-lang.org