1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/app/controllers
Matt Jankowski 21a767dcfa Improve handling of HTTP_ACCEPT for webfinger ()
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
2017-04-17 19:58:03 +02:00
..
admin I18n health warnings () 2017-04-16 19:37:01 +02:00
api ActiveRecord::NotFound is not defined () 2017-04-15 21:17:59 +02:00
auth Assign user locale on signup () 2017-04-17 10:29:08 +02:00
concerns Improve i18n chooser () 2017-04-15 01:12:39 +02:00
oauth
settings Add recovery code support for two-factor auth () 2017-04-15 13:26:03 +02:00
well_known Improve handling of HTTP_ACCEPT for webfinger () 2017-04-17 19:58:03 +02:00
about_controller.rb
accounts_controller.rb
api_controller.rb
application_controller.rb Make file attachment on MediaAttachment optional () 2017-04-16 12:51:30 +02:00
authorize_follow_controller.rb
home_controller.rb Onboarding modal () 2017-04-16 20:32:00 +02:00
media_controller.rb
remote_follow_controller.rb
statuses_controller.rb
stream_entries_controller.rb
tags_controller.rb