Merge pull request #584 from 6/https-source

Upload from HTTPS sources
This commit is contained in:
Albert Yi
2013-02-23 08:39:42 -08:00
4 changed files with 40 additions and 4 deletions

View File

@@ -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