1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-21 00:29:47 +00:00
Commit graph

3 commits

Author SHA1 Message Date
ThibG 5bbc9a4f78
Fix downloading remote media files when server returns empty filename ()
Fixes 
2020-09-27 22:00:43 +02:00
ThibG a1412491b7
Change content-type to be always computed from file data ()
* Change content-type to be always computed from file data

Restore previous behavior, detecting the content-type isn't very
expensive, and some instances may serve files as application/octet-stream
regardless of their true type, making fetching media from them fail, while
it used to work pre-3.2.0.

* Add test
2020-08-02 11:21:10 +02:00
Eugen Rochko 7aaf2b44ec
Fix remote files not using Content-Type header, streaming () 2020-06-30 23:58:02 +02:00