1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-19 00:58:21 +09:00
mastodon/app/controllers/well_known
Matt Jankowski 21a767dcfa 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
2017-04-17 19:58:03 +02:00
..
host_meta_controller.rb Clean up well-known routes/controllers (#1649) 2017-04-13 13:09:07 +02:00
webfinger_controller.rb Improve handling of HTTP_ACCEPT for webfinger (#2008) 2017-04-17 19:58:03 +02:00