0
Fork 0
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:
Jason Williams 2014-12-16 15:13:43 -06:00
commit b674cc6e2c

View file

@ -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,