Skip to content

Instantly share code, notes, and snippets.

@joaquimadraz
Created October 29, 2013 12:32
Show Gist options
  • Save joaquimadraz/7213795 to your computer and use it in GitHub Desktop.
Save joaquimadraz/7213795 to your computer and use it in GitHub Desktop.
Remove rails warning
Remove WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
Open ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpresponse.rb
goto line 205 and change it to:
if chunked? || @header['content-length'] || @status == 304 || @status == 204
Change the ruby version in the path to your version
bye bye warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment