Actions
Bug #559
closedWEBrick should use #bytesize instead of #size
Description
=begin
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.
=end
Files
Actions
Like0
Like0Like0Like0