themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to shut up Webrick warnings about content-length

$ sudo sed -i "205,205 {/^\s*if chunked\?/s/$/ || @status == 304 || @status == 204/}" \
  /usr/lib/ruby/1.9.1/webrick/httpresponse.rb

Based on solution from http://stackoverflow.com/a/9071474