aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpg
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-05 22:54:02 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-05 22:54:02 +0200
commit577c0b6dd82c421c377c37295c59dee147068132 (patch)
treee63b2d0a64b446934cd85cd89eb3611a6b386a46 /tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpg
parenta687c8d915276eee0c0494156700f7d0c0606735 (diff)
downloadwallabag-577c0b6dd82c421c377c37295c59dee147068132.tar.gz
wallabag-577c0b6dd82c421c377c37295c59dee147068132.tar.zst
wallabag-577c0b6dd82c421c377c37295c59dee147068132.zip
Use an alternative way to detect image
When parsing content to retrieve images to save locally, we only check for the content-type of the image response. In some case, that value is empty. Now we’re also checking for the first few bytes of the content as an alternative to detect if it’s an image wallabag can handle. We might get higher image supports using that alternative method.
Diffstat (limited to 'tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpg')
-rw-r--r--tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpgbin0 -> 354067 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpg b/tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpg
new file mode 100644
index 00000000..0c60e952
--- /dev/null
+++ b/tests/Wallabag/CoreBundle/fixtures/image-no-content-type.jpg
Binary files differ