cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 244 forks source link

Correctly set Content-Length when using Ruby 1.9 #93

Closed mikedouglas closed 12 years ago

mikedouglas commented 13 years ago

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 commented 13 years ago

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 commented 12 years ago

See also #10: index.builder Generating partial feed (xml is truncated)