Merge pull request #36270 from spencergibb

* pr/36270:
  Skip int conversion in ClientHttpRequestFactories

Closes gh-36270
pull/36278/head
Jonatan Ivanov 1 year ago
commit 6041fe9b7a
No known key found for this signature in database
GPG Key ID: 828AFD0254A84974

@ -285,7 +285,7 @@ public final class ClientHttpRequestFactories {
java.net.http.HttpClient httpClient = createHttpClient(settings.connectTimeout(), settings.sslBundle());
JdkClientHttpRequestFactory requestFactory = new JdkClientHttpRequestFactory(httpClient);
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
map.from(settings::readTimeout).asInt(Duration::toMillis).to(requestFactory::setReadTimeout);
map.from(settings::readTimeout).to(requestFactory::setReadTimeout);
return requestFactory;
}

Loading…
Cancel
Save