diff options
author | 2018-11-01 13:29:29 +0300 | |
---|---|---|
committer | 2018-11-01 13:29:29 +0300 | |
commit | 2b9d2478833a060df76c855e78c46e33c032db49 (patch) | |
tree | a516cb597704529cf1de623eb807d219a5510d49 /juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java | |
parent | 0dc2727e0633a4b865d814c7ab8450e3c815e511 (diff) |
ActivityPub: fix 410 error handler
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java b/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java index 0e8eaf02..ad26582a 100644 --- a/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java +++ b/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java @@ -1,6 +1,5 @@ package com.juick.server.configuration; -import com.juick.server.ActivityPubManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.client.SimpleClientHttpRequestFactory; @@ -13,7 +12,7 @@ public class ActivityPubClientConfig { SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); requestFactory.setOutputStreaming(false); RestTemplate restTemplate = new RestTemplate(requestFactory); - restTemplate.setErrorHandler(new ActivityPubManager.ErrorHandler()); + restTemplate.setErrorHandler(new ActivityPubClientErrorHandler()); return restTemplate; } }
\ No newline at end of file |