aboutsummaryrefslogtreecommitdiff
path: root/juick-server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-01 12:01:23 +0300
committerGravatar Vitaly Takmazov2018-11-01 12:01:31 +0300
commitee4c1ef3b11d66129f64ca5361e9a7ef15779395 (patch)
treebbe4ea702fc139ba086e17f659f133fe3409b11d /juick-server
parent72b9b677d9f361ebbf963e7e1cf95f287e0315ea (diff)
disable resttemplate output streaming
Diffstat (limited to 'juick-server')
-rw-r--r--juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java1
1 files changed, 1 insertions, 0 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 12626b59..0e8eaf02 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
@@ -11,6 +11,7 @@ public class ActivityPubClientConfig {
@Bean
public RestTemplate apClient() {
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
+ requestFactory.setOutputStreaming(false);
RestTemplate restTemplate = new RestTemplate(requestFactory);
restTemplate.setErrorHandler(new ActivityPubManager.ErrorHandler());
return restTemplate;