Project

General

Profile

Bug #5545 ยป http.rb.diff

ferlatte (Mark Ferlatte), 11/04/2011 06:13 AM

View differences:

lib/net/http.rb (working copy)
}
else
uri = uri_or_host
new(uri.hostname, uri.port).start {|http|
start(uri.hostname, uri.port,
:use_ssl => uri.scheme == 'https') {|http|
return http.request_get(uri.request_uri, &block)
}
end
......
req = Post.new(url.request_uri)
req.form_data = params
req.basic_auth url.user, url.password if url.user
new(url.hostname, url.port).start {|http|
start(url.hostname, url.port,
:use_ssl => uri.scheme == 'https' ) {|http|
http.request(req)
}
end
    (1-1/1)