lib/ftw/agent.rb in ftw-0.0.13 vs lib/ftw/agent.rb in ftw-0.0.14

- old
+ new

@@ -38,10 +38,12 @@ class FTW::Agent include FTW::Protocol require "ftw/agent/configuration" include FTW::Agent::Configuration + # Thrown when too many redirects are encountered + # See also {FTW::Agent::Configuration::REDIRECTION_LIMIT} class TooManyRedirects < StandardError attr_accessor :response def initialize(reason, response) super(reason) @response = response @@ -200,10 +202,10 @@ connection.release elsif response.content? # Throw away the body response.body = connection # read_body will consume the body and release this connection - response.read_body { |chunk| } + response.read_http_body { |chunk| } end # TODO(sissel): If this response has any cookies, store them in the # agent's cookie store