Merge pull request #52 from johnkchow/master

Catch an IOError that happens on Ruby 2.0
This commit is contained in:
John Bintz 2014-07-18 07:32:13 -04:00
commit 952ea670dd

View File

@ -45,7 +45,7 @@ module Rack
begin begin
http.send_request('GET', uri.path) http.send_request('GET', uri.path)
@use_vendored = false @use_vendored = false
rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError, IOError
@use_vendored = true @use_vendored = true
rescue => e rescue => e
$stderr.puts e.inspect $stderr.puts e.inspect