0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core
Kevin Ansfield 830610d243 Fixed serving of binary public files
no issue

- serving of our public asset images was broken
  - we were reading the binary file in as a string so we could do url transforms, this meant data was lost/corrupted and browsers could not display the served data
  - we were using the wrong mime-type for pngs which meant browsers were triggering downloads rather than displaying images (at least when accessed directly)
- updates uses of `servePublicFile` to have the correct png mimetype
- adjusts `servePublicFile` to treat any mime type starting with `image` as a binary file, passing the file directly through express using `res.sendFile` and skipping the in-memory content caching which is mostly only useful for text files with URL transforms
2020-02-10 09:51:32 +00:00
..
client@844dea9c84 Updated Ghost-Admin to 3.5.0 2020-02-05 11:42:31 +00:00
frontend Added {{price}} helper for formatting stripe amounts (ie. "1935" to "19.35") (#11473) 2020-01-27 11:41:12 +00:00
server Fixed serving of binary public files 2020-02-10 09:51:32 +00:00
shared/nql-map-key-values
test Changed members CSV export to match import format 2020-02-05 15:34:55 +08:00
index.js