Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly set Content-Length when using Ruby 1.9 #93

Merged
merged 1 commit into from
Mar 19, 2012

Conversation

mikedouglas
Copy link
Contributor

The meaning of String#length changed between 1.8 and 1.9. This commit clarifies that Content-Length is the number of bytes, and monkey-patches String#bytesize into 1.8.

I think the default setup for Heroku is now Ruby 1.9, so it makes sense to ensure that Toto works with it.

See #91, #86, etc.

@ixti
Copy link

ixti commented Aug 7, 2011

Man! Nice! I was too lazy to get into deep of the problem :)) Thanks for solving it (will merge your patch into mine branch) Woo-hoo! :))

@ghost
Copy link

ghost commented Dec 12, 2011

cloudhead pushed a commit that referenced this pull request Mar 19, 2012
Correctly set Content-Length when using Ruby 1.9
@cloudhead cloudhead merged commit 7af9a05 into cloudhead:master Mar 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants