From cc8f029f222a618eb30b585ccb22efcce1e5cf91 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 12 Mar 2017 19:44:01 +0000 Subject: secure urls + remove -k from in-doc curl command --- Library/Homebrew/cask/lib/hbc/cli/home.rb | 2 +- Library/Homebrew/cask/lib/hbc/url.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cask/lib') diff --git a/Library/Homebrew/cask/lib/hbc/cli/home.rb b/Library/Homebrew/cask/lib/hbc/cli/home.rb index 13b721859..4734bfebb 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/home.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/home.rb @@ -4,7 +4,7 @@ module Hbc def self.run(*cask_tokens) if cask_tokens.empty? odebug "Opening project homepage" - system "/usr/bin/open", "--", "http://caskroom.github.io/" + system "/usr/bin/open", "--", "https://caskroom.github.io/" else cask_tokens.each do |cask_token| odebug "Opening homepage for Cask #{cask_token}" diff --git a/Library/Homebrew/cask/lib/hbc/url.rb b/Library/Homebrew/cask/lib/hbc/url.rb index dd34119db..07b41fb80 100644 --- a/Library/Homebrew/cask/lib/hbc/url.rb +++ b/Library/Homebrew/cask/lib/hbc/url.rb @@ -2,7 +2,7 @@ require "forwardable" module Hbc class URL - FAKE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) http://caskroom.github.io".freeze + FAKE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) https://caskroom.github.io".freeze attr_reader :using, :revision, :trust_cert, :uri, :cookies, :referer, :data -- cgit v1.2.3