Project

General

Profile

Feature #4071 ยป 0001-support-basic-auth-for-Net-HTTP.get-requests.patch

coderrr (coderrr .), 11/19/2010 03:53 PM

View differences:

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
    (1-1/1)