lib/almodovar/http_client.rb in almodovar-1.5.1 vs lib/almodovar/http_client.rb in almodovar-1.5.2
- old
+ new
@@ -68,11 +68,9 @@
def request(method, uri, options = {})
uri = URI.parse(URI.escape(URI.unescape(uri)))
if (requires_auth?)
domain = domain_for(uri)
- uri.user = username
- uri.password = password
set_client_auth(domain)
end
client.request(method, uri, :body => options[:body], :header => options[:headers].stringify_keys || {}, :follow_redirect => true)
rescue HTTPClient::SendTimeoutError => e
raise SendTimeoutError.new(e)