Align RestTemplateBuilder with Framework's removal of OkHttp 2 support

Closes gh-13314
pull/13312/merge
Andy Wilkinson 7 years ago
parent f56cd789ac
commit 0d7d95d8a9

@ -72,8 +72,6 @@ public class RestTemplateBuilder {
"org.springframework.http.client.HttpComponentsClientHttpRequestFactory");
candidates.put("okhttp3.OkHttpClient",
"org.springframework.http.client.OkHttp3ClientHttpRequestFactory");
candidates.put("com.squareup.okhttp.OkHttpClient",
"org.springframework.http.client.OkHttpClientHttpRequestFactory");
REQUEST_FACTORY_CANDIDATES = Collections.unmodifiableMap(candidates);
}

Loading…
Cancel
Save