master #1

Merged
lino.jorzick merged 203 commits from External/greenlight:master into master 2021-10-02 18:19:43 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 6e804d550a - Show all commits

View File

@ -53,6 +53,7 @@ module Joiner
http = Net::HTTP.new(uri.host, uri.port) http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https' http.use_ssl = true if uri.scheme == 'https'
response = http.request_head(uri) response = http.request_head(uri)
return false if response.code != "200"
return response['content-length'].to_i < Rails.configuration.max_avatar_size return response['content-length'].to_i < Rails.configuration.max_avatar_size
end end