lib/httpx/client.rb in httpx-0.0.1 vs lib/httpx/client.rb in httpx-0.0.2
- old
+ new
@@ -110,10 +110,10 @@
responses << ErrorResponse.new(e.message, 0) while requests.shift
@connection.reset
break
end
end
- requests.size == 1 ? responses.first : responses
+ responses
end
def __build_req(verb, uri, options = {})
rklass = @options.request_class
rklass.new(verb, uri, @options.merge(options))