lib/fake_web/ext/net_http.rb in eric-fakeweb-1.2.2.2 vs lib/fake_web/ext/net_http.rb in eric-fakeweb-1.2.2.3

- old
+ new

@@ -63,11 +63,11 @@ @socket = Net::HTTP.socket_type.new FakeWeb.response_for(method, uri, &block) elsif FakeWeb.allow_net_connect? connect_without_fakeweb res = request_without_fakeweb(request, body, &block) - after_unhandled_request(request, res) + after_unhandled_request(uri, request, res, @socket.full_rbuf) res else raise FakeWeb::NetConnectNotAllowedError, "Real HTTP connections are disabled. Unregistered request: #{request.method} #{uri}" end @@ -75,9 +75,9 @@ alias connect_without_fakeweb connect def connect end - def after_unhandled_request(request, response) + def after_unhandled_request(uri, request, response, response_buffer) end end end