aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/pull.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/pull.rb')
-rw-r--r--Library/Homebrew/cmd/pull.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index 38f6993ef..14a7df5c9 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -518,9 +518,11 @@ module Homebrew
# 401 error is normal while file is still in async publishing process
url = URI(bottle_info.url)
puts "Verifying bottle: #{File.basename(url.path)}"
- Net::HTTP.start(url.host, url.port, :use_ssl => true) do |http|
+ http = Net::HTTP.new(url.host, url.port)
+ http.use_ssl = true
+ http.start do
while true do
- req = Net::HTTP::Head.new url
+ req = Net::HTTP::Head.new bottle_info.url
res = http.request req
retry_count += 1
if res.is_a?(Net::HTTPSuccess)