mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
stop middleware converting favicon to string
closes #4658 - adds conditional to prevent favicon being processed as a string
This commit is contained in:
parent
c030236933
commit
7d79016af5
@ -215,7 +215,9 @@ function serveSharedFile(file, type, maxAge) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
buf = buf.toString().replace('{{blog-url}}', config.url.replace(/\/$/, ''));
|
||||
if (type === 'text/xsl' || type === 'text/plain') {
|
||||
buf = buf.toString().replace('{{blog-url}}', config.url.replace(/\/$/, ''));
|
||||
}
|
||||
content = {
|
||||
headers: {
|
||||
'Content-Type': type,
|
||||
|
Loading…
Reference in New Issue
Block a user