Upload#is_downloadable? returns true for https sources
This commit is contained in:
@@ -247,7 +247,7 @@ class Upload < ActiveRecord::Base
|
||||
module DownloaderMethods
|
||||
# Determines whether the source is downloadable
|
||||
def is_downloadable?
|
||||
source =~ /^http:\/\// && file_path.blank?
|
||||
source =~ /^https?:\/\// && file_path.blank?
|
||||
end
|
||||
|
||||
# Downloads the file to destination_path
|
||||
|
||||
Reference in New Issue
Block a user