mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: increase read_timeout when downloading avatar
This commit is contained in:
parent
936b55faad
commit
da2f1fda15
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue