mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Merge pull request #4661 from cobbspur/favicon
stop middleware converting favicon to string
This commit is contained in:
commit
b674cc6e2c
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