lib/excon/middlewares/expects.rb in excon-0.21.0 vs lib/excon/middlewares/expects.rb in excon-0.22.0

- old
+ new

@@ -4,10 +4,10 @@ def response_call(datum) if datum.has_key?(:expects) && ![*datum[:expects]].include?(datum[:response][:status]) raise( Excon::Errors.status_error( datum.reject {|key,value| key == :response}, - Excon::Response.new(datum[:response]) + Excon::Response.new(datum[:response]) ) ) else @stack.response_call(datum) end