lib/pact/consumer/server.rb in pact-mock_service-0.2.2 vs lib/pact/consumer/server.rb in pact-mock_service-0.2.3.pre.rc1
- old
+ new
@@ -61,9 +61,11 @@
if res.is_a?(Net::HTTPSuccess) or res.is_a?(Net::HTTPRedirection)
return res.body == @app.object_id.to_s
end
rescue SystemCallError
return false
+ rescue EOFError
+ return false
end
def run_default_server(app, port)
require 'rack/handler/webrick'
Rack::Handler::WEBrick.run(app, :Port => port, :AccessLog => [], :Logger => WEBrick::Log::new(nil, 0))