-
- Téléchargements
Improve handling of HTTP_ACCEPT for webfinger (#2008)
This change includes: - Improve the spec coverage for incoming request to the webfinger action - For requests without an accept header (ie, what a browser might look like), return a JSON response. - For requests with an explicit format of xml or json, return that format. - For requests using an accept header, return that format. Also adds failing spec showing webfinger does not return xml, which covers the issue described in: https://github.com/tootsuite/mastodon/issues/1983
parent
3399dd7a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/well_known/webfinger_controller.rb 7 ajouts, 2 suppressionsapp/controllers/well_known/webfinger_controller.rb
- config/routes.rb 1 ajout, 1 suppressionconfig/routes.rb
- spec/requests/webfinger_request_spec.rb 30 ajouts, 15 suppressionsspec/requests/webfinger_request_spec.rb
- spec/routing/well_known_routes_spec.rb 1 ajout, 1 suppressionspec/routing/well_known_routes_spec.rb
Veuillez vous inscrire ou vous se connecter pour commenter