]> cat aescling's git repositories - mastodon.git/commit
Fix FetchAtomService content type handling (#9132)
authorvalerauko <vale@valerauko.net>
Tue, 30 Oct 2018 14:07:57 +0000 (23:07 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 30 Oct 2018 14:07:57 +0000 (15:07 +0100)
commitc36a4a16178441968715e13c77859b1eb813c2af
treeb65c315cadf1e016730a62a69e28e01dc8493191
parenta3d40ba53b1154a8711d625a4ec6162b343a217d
Fix FetchAtomService  content type handling (#9132)

* Add profile to json+ld in Accept

It's required by the ActivityPub spec

* Use headers['Content-type'] instead of mime_type

mime_type strips the profile from the content type, but it's still available raw in the headers hash

* Add test for ld+json with profile
app/services/fetch_atom_service.rb
spec/services/fetch_atom_service_spec.rb