Feature #4071 ยป 0001-support-basic-auth-for-Net-HTTP.get-requests.patch
lib/net/http.rb | ||
---|---|---|
else
|
||
uri = uri_or_host
|
||
new(uri.hostname, uri.port).start {|http|
|
||
return http.request_get(uri.request_uri, &block)
|
||
get = Get.new(uri.request_uri)
|
||
get.basic_auth uri.user, uri.password if uri.user
|
||
return http.request(get, &block)
|
||
}
|
||
end
|
||
end
|