mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Merge pull request #4039 from tgxworld/follow_redirects_when_downloading_favicon
FIX: Follow redirects when downloading favicons.
This commit is contained in:
commit
e8d4935a2c
@ -101,7 +101,7 @@ class StaticController < ApplicationController
|
||||
|
||||
data = DistributedMemoizer.memoize('favicon' + SiteSetting.favicon_url, 60*30) do
|
||||
begin
|
||||
file = FileHelper.download(SiteSetting.favicon_url, 50.kilobytes, "favicon.png")
|
||||
file = FileHelper.download(SiteSetting.favicon_url, 50.kilobytes, "favicon.png", true)
|
||||
data = file.read
|
||||
file.unlink
|
||||
data
|
||||
|
Loading…
Reference in New Issue
Block a user