diff options
| author | Kevin Abel | 2018-01-13 17:06:21 -0600 |
|---|---|---|
| committer | Kevin Abel | 2018-01-13 17:06:21 -0600 |
| commit | 0254605cd52b1bb92ffe33114c671cc111c5a687 (patch) | |
| tree | a4d3a60751eae85258ea9195d8c381ea4dd3137b /Library | |
| parent | dca8dc5bf50c508eadf051d4316cec12dacf7674 (diff) | |
| download | brew-0254605cd52b1bb92ffe33114c671cc111c5a687.tar.bz2 | |
Handle reaching the top of a URL which searching for file ext
Should never reach this as most URL's will have a domain name that will
be caught as an extname.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 341947544..2774f2fad 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -306,6 +306,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy url_pathname = Pathname.new(@url) until ext = url_pathname.extname[/[^?]+/] url_pathname = url_pathname.dirname + return if url_pathname.to_s == "." end ext end |
