From ee4c1ef3b11d66129f64ca5361e9a7ef15779395 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Nov 2018 12:01:23 +0300 Subject: disable resttemplate output streaming --- .../java/com/juick/server/configuration/ActivityPubClientConfig.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-server/src/main/java/com/juick/server') 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; -- cgit v1.2.3