mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue