The Content-Length does not byte-size, in Ruby 1.9.2-p290. #13

Open
koshigoe opened this Issue Sep 13, 2011 · 2 comments

Comments

Projects
None yet
3 participants
  • Ruby 1.9.2-p290
  • Request body include Japanese characters (UTF-8)

String#length returns charactor length. Not byte-size.
String#bytesize returns length of string in bytes.

mlanett commented Oct 4, 2011

There is a pull request open to fix this.

Collaborator

ioquatix commented May 3, 2017

I believe this is fixed, but there might be other issues since the code is pretty old. We should definitely be using bytesize everywhere now. If you have time, a check and PR would be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment