From 822b05c9c1dc6ebcd7eeac7282d23ea3991bd1f0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 3 Jun 2016 15:32:11 +0100 Subject: cmd/pull: fix HTTP header usage. --- Library/Homebrew/cmd/pull.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 3a90e9229..073ede253 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -503,12 +503,12 @@ module Homebrew url = URI(bottle_info.url) puts "Verifying bottle: #{File.basename(url.path)}" http = Net::HTTP.new(url.host, url.port) - http.initialize_http_header "User-Agent" => HOMEBREW_USER_AGENT_RUBY http.use_ssl = true retry_count = 0 http.start do while true do req = Net::HTTP::Head.new bottle_info.url + req.initialize_http_header "User-Agent" => HOMEBREW_USER_AGENT_RUBY res = http.request req if res.is_a?(Net::HTTPSuccess) break -- cgit v1.2.3