diff options
author | Vitaly Takmazov | 2023-01-18 20:39:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-19 14:30:01 +0300 |
commit | 12e2206f9d24b29c8276b2743603635620643444 (patch) | |
tree | 3af762f3fa6a1ce016df219fb88ab2b394ba35bb /src/main/java/com/juick/www/api/webfinger | |
parent | 5b0f0bebda5d6369111ae35f8c335324ffa4cc7e (diff) |
RestTemplate -> OkHttpClient
Diffstat (limited to 'src/main/java/com/juick/www/api/webfinger')
-rw-r--r-- | src/main/java/com/juick/www/api/webfinger/Resource.java | 3 |
1 files changed, 2 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 34878b69..3a6c36c4 100644 --- a/src/main/java/com/juick/www/api/webfinger/Resource.java +++ b/src/main/java/com/juick/www/api/webfinger/Resource.java @@ -38,6 +38,7 @@ import static com.juick.www.api.activity.model.Context.ACTIVITY_MEDIA_TYPE; @RestController public class Resource { + public static final String MEDIA_TYPE = "application/jrd+json"; @Inject private UserService userService; @Value("${web_domain:localhost}") @@ -46,7 +47,7 @@ public class Resource { private String baseUri; @GetMapping(value = "/.well-known/webfinger", produces = { - "application/jrd+json", MediaType.APPLICATION_JSON_VALUE }) + Resource.MEDIA_TYPE, MediaType.APPLICATION_JSON_VALUE }) public Account getWebResource(@RequestParam String resource) { if (resource.startsWith("acct:")) { try { |