mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 16:35:34 +08:00
FIX: If we can't proxy to a CDN due to HTTP error, render blank
This commit is contained in:
parent
57a2042ef6
commit
1768c45a33
@ -117,6 +117,8 @@ class UserAvatarsController < ApplicationController
|
||||
else
|
||||
render_blank
|
||||
end
|
||||
rescue OpenURI::HTTPError
|
||||
render_blank
|
||||
end
|
||||
|
||||
PROXY_PATH = Rails.root + "tmp/avatar_proxy"
|
||||
|
Loading…
x
Reference in New Issue
Block a user