Ghost/core/server/lib
Aileen Nowak 19a6c8a426 Added test for images w/o extensions for image size util (#9367)
closes #9022

Images without extensions don't need to be manipulated, as we're now reading the bytes and pass those to the `image-size` lib.

This PR adds another `user-agent` to emulate multiple browser requests, as I stumbled over an example where the image without extension is protected otherwise.

Added a test, that works with above mentioned image, but is currently mocked. Nevertheless, the image worked as a PoC, that we're able to read the bytes of an image without its extension and still return the dimensions of the image.
2018-01-04 12:03:41 +01:00
..
common
fs Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
image Added test for images w/o extensions for image size util (#9367) 2018-01-04 12:03:41 +01:00
mobiledoc Moved default-cards app to lib/mobiledoc (#9341) 2017-12-14 14:44:01 +00:00
promise
security Moved unique identifier generation to lib/security 2017-12-14 13:52:20 +01:00
social Moved social utility to lib/social 2017-12-14 22:34:05 +01:00
constants.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
ghost-version.js Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
request.js Removed bluebird promise wrap in request lib (#9343) 2018-01-02 12:18:56 +01:00