aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-06-03 15:32:11 +0100
committerMike McQuaid2016-06-03 15:32:11 +0100
commit822b05c9c1dc6ebcd7eeac7282d23ea3991bd1f0 (patch)
treea57ff108586ad13ae28f8bd86962bcf823fa8714 /Library/Homebrew
parent8a217dd42088b295e809d38d4b37f3c8bd47e8cf (diff)
downloadbrew-822b05c9c1dc6ebcd7eeac7282d23ea3991bd1f0.tar.bz2
cmd/pull: fix HTTP header usage.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/pull.rb2
1 files changed, 1 insertions, 1 deletions
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