diff options
| author | Mike McQuaid | 2017-02-24 08:51:15 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-02-24 08:51:15 +0000 |
| commit | 1284f29561d944e069d201db9043489417b85ff4 (patch) | |
| tree | 87901d56dc4a829f4e6da0879e69271ab3617feb /Library/Homebrew/dev-cmd | |
| parent | b984be675ddd07ccbf7151355a22096de47c5c50 (diff) | |
| download | brew-1284f29561d944e069d201db9043489417b85ff4.tar.bz2 | |
audit: don't try to HTTP check non-HTTP content.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index cf5bdcdc4..e49f65dd2 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -175,6 +175,8 @@ class FormulaAuditor end def self.check_http_content(url, user_agents: [:default]) + return unless url.start_with? "http" + details = nil user_agent = nil user_agents.each do |ua| |
