diff --git a/lib/cocoapods-downloader/http.rb b/lib/cocoapods-downloader/http.rb index 18fcbb2..581e6da 100644 --- a/lib/cocoapods-downloader/http.rb +++ b/lib/cocoapods-downloader/http.rb @@ -51,7 +51,7 @@ def should_flatten? end def type_with_url(url) - path = URI::parse(url).path + path = URI.parse(url).path if path =~ /.zip$/ :zip elsif path =~ /.(tgz|tar\.gz)$/