aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 2d2fe1c28..17ee4143f 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -199,6 +199,13 @@ class CurlPostDownloadStrategy < CurlDownloadStrategy
end
end
+# Download from an SSL3-only host.
+class CurlSSL3DownloadStrategy < CurlDownloadStrategy
+ def _fetch
+ curl @url, '-3', '-C', downloaded_size, '-o', @temporary_path
+ end
+end
+
# Use this strategy to download but not unzip a file.
# Useful for installing jars.
class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy
@@ -745,6 +752,7 @@ class DownloadStrategyDetector
when :nounzip then NoUnzipCurlDownloadStrategy
when :post then CurlPostDownloadStrategy
when :svn then SubversionDownloadStrategy
+ when :ssl3 then CurlSSL3DownloadStrategy
else
raise "Unknown download strategy #{strategy} was requested."
end