aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/webfinger
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-30 17:25:04 +0300
committerGravatar Vitaly Takmazov2022-12-30 17:25:04 +0300
commit331dd7d9ec7c6ba50a4c4912f8e62fcc84c6c461 (patch)
treec245b632eb0940669e25ee8a444e581f9839972f /src/main/java/com/juick/www/api/webfinger
parent01a4463ea7df9c6491d6181008112b7cebd27b51 (diff)
Accept fallback content types on `host-meta` and `webfinger` endpoints
Diffstat (limited to 'src/main/java/com/juick/www/api/webfinger')
-rw-r--r--src/main/java/com/juick/www/api/webfinger/Resource.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/webfinger/Resource.java b/src/main/java/com/juick/www/api/webfinger/Resource.java
index c4e0d5ca..bc478b24 100644
--- a/src/main/java/com/juick/www/api/webfinger/Resource.java
+++ b/src/main/java/com/juick/www/api/webfinger/Resource.java
@@ -18,6 +18,7 @@
package com.juick.www.api.webfinger;
import com.juick.model.User;
+import com.juick.www.api.activity.model.Context;
import com.juick.www.api.webfinger.model.Account;
import com.juick.www.api.webfinger.model.Link;
import com.juick.util.HttpNotFoundException;
@@ -43,7 +44,8 @@ public class Resource {
@Value("${ap_base_uri:http://localhost:8080/}")
private String baseUri;
- @GetMapping(value = "/.well-known/webfinger", produces = "application/jrd+json;charset=utf-8")
+ @GetMapping(value = "/.well-known/webfinger", produces = {
+ "application/jrd+json;charset=utf-8", Context.FALLBACK_JSON_MEDIA_TYPE })
public Account getWebResource(@RequestParam String resource) {
if (resource.startsWith("acct:")) {
try {