mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: increase read_timeout when downloading avatar
This commit is contained in:
@@ -129,7 +129,7 @@ class UserAvatarsController < ApplicationController
|
||||
|
||||
unless File.exist? path
|
||||
FileUtils.mkdir_p PROXY_PATH
|
||||
tmp = FileHelper.download(url, 1.megabyte, filename, true)
|
||||
tmp = FileHelper.download(url, 1.megabyte, filename, true, 10)
|
||||
FileUtils.mv tmp.path, path
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user