diff options
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 72a64bdd2..589147c31 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -343,7 +343,9 @@ class CurlApacheMirrorDownloadStrategy < CurlDownloadStrategy @tried_apache_mirror = true mirrors = Utils::JSON.load(apache_mirrors) - @url = mirrors.fetch('preferred') + mirrors.fetch('path_info') + path_info = mirrors.fetch("path_info") + @url = mirrors.fetch('preferred') + path_info + @mirrors |= %W[https://archive.apache.org/dist/#{path_info}] ohai "Best Mirror #{@url}" super |
