]> cat aescling's git repositories - mastodon.git/commit
Change content-type to be always computed from file data (#14452)
authorThibG <thib@sitedethib.com>
Sun, 2 Aug 2020 09:21:10 +0000 (11:21 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Aug 2020 09:21:10 +0000 (11:21 +0200)
commita1412491b76ca37ca668083d2958fccf750a5fd3
tree1689d75b25f994579f2ed4b37ae08fddaf49c8d9
parent9490011226e69426faefbfca02e5566cef369774
Change content-type to be always computed from file data (#14452)

* 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
lib/paperclip/response_with_limit_adapter.rb
spec/lib/activitypub/activity/create_spec.rb