Project

General

Profile

Actions

Bug #559

closed

WEBrick should use #bytesize instead of #size

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

Status:
Closed
Priority:
Normal
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 #1

Updated by ko1 (Koichi Sasada) about 13 years ago

  • Assignee set to gotoyuzo (GOTOU Yuuzou)

=begin

=end

Actions #2

Updated by yugui (Yuki Sonoda) about 13 years ago

  • Target version set to 1.9.1 Release Candidate

=begin

=end

Actions #3

Updated by matz (Yukihiro Matsumoto) almost 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20152.
=end

Actions

Also available in: Atom PDF