Updated to work on Rails 3.2, and Ruby 1.9.2.  DRY'd up the process headers method call
Merge pull request #1 from bellycard/master

Ruby 1.9.2 friendly TCPSockets and DRY'd up process_headers method
Merging in Ruby 1.9.x support. 
@jdoconnor Thanks, wasn't sure anyone actually used this anymore.