diff options
author | Vitaly Takmazov | 2019-03-15 11:27:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-15 11:27:08 +0300 |
commit | 861580c3dae53fb8e57956fd44aafa79f5d2c145 (patch) | |
tree | 7118945e42fe2989c23527adbc74282c9958090a /src/main/java/com | |
parent | 294805a039dfd38646a47e11acba0d9dbb6c107f (diff) |
trying to remove okHttp
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java b/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java index 6cb1126d..d7d49355 100644 --- a/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java +++ b/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java @@ -4,7 +4,6 @@ import com.juick.server.api.activity.model.Activity; import com.juick.server.helpers.HeaderRequestInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.http.client.OkHttp3ClientHttpRequestFactory; import org.springframework.web.client.RestTemplate; import javax.inject.Inject; @@ -16,7 +15,7 @@ public class ActivityPubClientConfig { ActivityPubClientErrorHandler activityPubClientErrorHandler; @Bean public RestTemplate apClient() { - RestTemplate restTemplate = new RestTemplate(new OkHttp3ClientHttpRequestFactory()); + RestTemplate restTemplate = new RestTemplate(); restTemplate.setErrorHandler(activityPubClientErrorHandler); restTemplate.setInterceptors(Collections.singletonList( new HeaderRequestInterceptor("Accept", Activity.ACTIVITY_MEDIA_TYPE))); |