DISQUS

DISQUS Hello! Life is grand is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Render text and byte lengths

Started by paulmwatson · 1 year ago

Just a quick tip for Ruby on Rails; Don’t do render :text => 1 Rather do render :text => ‘1′

The former causes problems over HTTP when the client is expecting a content length of 4 but only getting 1. You get hanging connections which eventually reset. The latter render will send down the proper content […] ... Continue reading »

0 comments

This thread has no comments yet.

Add New Comment

Returning? Login