Project

General

Profile

Actions

Bug #559

closed

WEBrick should use #bytesize instead of #size

Added by lemon (raspberry lemon) over 16 years ago. Updated over 13 years ago.

Status:
Closed
ruby -v:
Backport:
[ruby-core:18571]

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

patch.diff (10.2 KB) patch.diff lemon (raspberry lemon), 09/14/2008 02:46 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0