Commit Graph

6 Commits (a393529547cd848d5f56e2781e9082e09c5c9dce)

Author SHA1 Message Date
ThibG 3df85a843c Make host_meta/webfinger replies cacheable (fixes ) ()
* Make host_meta/webfinger replies cacheable (fixes )

Drop common code for handling users and sessions as webfinger queries
are very basic, public APIs.

Also explicitly mark results as cacheable with “expires_in”.

* Add “Vary: Accept” header for caching since content-negociation is used
2017-12-27 18:21:12 +01:00
Eugen Rochko b037fbf9f4 Remove rabl dependency ()
* Remove rabl dependency

* Replicate old Oj configuration
2017-12-06 15:04:49 +09:00
ThibG 810dd86991 Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper ()
This fixes .
2017-06-02 22:21:36 +02:00
Immae ae917bfb23 Allow alternate domains for mastodon handlers () 2017-05-22 15:40:04 +02:00
Matt Jankowski fd9d43b6e2 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
Matt Jankowski d8789124ae Clean up well-known routes/controllers ()
* Add request spec for host meta route returning xml

* Add routing spec for xrd routes

* Update well-known routes

* Move webfinger and host-meta actions to their own controllers
2017-04-13 13:09:07 +02:00