From 82195d82d655f2210ecad52b8c76bbe65b536057 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Mon, 22 Feb 2016 02:43:34 +0100 Subject: [PATCH] make url fetcher less restrictive on file-endings --- lib/fetchers/url.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/fetchers/url.rb b/lib/fetchers/url.rb index 672a3bd52..41c08af5d 100644 --- a/lib/fetchers/url.rb +++ b/lib/fetchers/url.rb @@ -18,8 +18,6 @@ module Fetchers return nil if uri.nil? or uri.scheme.nil? return nil unless %{ http https }.include? uri.scheme target = transform(target) - # TODO: for now, this can be much less strict now vv - return nil unless target.end_with?('tar.gz', 'zip') # fetch this url and hand it off res = new(target, opts) resolve_next(res.archive.path, res)