diff options
author | Vitaly Takmazov | 2018-11-01 12:01:23 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-01 12:01:31 +0300 |
commit | ee4c1ef3b11d66129f64ca5361e9a7ef15779395 (patch) | |
tree | bbe4ea702fc139ba086e17f659f133fe3409b11d /juick-server/src/main/java/com/juick/server | |
parent | 72b9b677d9f361ebbf963e7e1cf95f287e0315ea (diff) |
disable resttemplate output streaming
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java | 1 |
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; |