fixed typos (#873)

Co-authored-by: Your Name <you@example.com>
pull/875/head
giveup 2020-05-25 17:58:34 +08:00 committed by GitHub
parent 2b8f218c8f
commit b40c3f7ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -45,9 +45,9 @@ public class HttpClientUtils {
.build();
return HttpClients.custom()
.setSSLContext(sslContext)
.setSSLHostnameVerifier(new NoopHostnameVerifier())
.setDefaultRequestConfig(getReqeustConfig(timeout))
.setSSLContext(sslContext)
.setSSLHostnameVerifier(new NoopHostnameVerifier())
.setDefaultRequestConfig(getRequestConfig(timeout))
.build();
}
@ -57,12 +57,12 @@ public class HttpClientUtils {
* @param timeout connection timeout (ms)
* @return request config
*/
private static RequestConfig getReqeustConfig(int timeout) {
private static RequestConfig getRequestConfig(int timeout) {
return RequestConfig.custom()
.setConnectTimeout(timeout)
.setConnectionRequestTimeout(timeout)
.setSocketTimeout(timeout)
.build();
.setConnectTimeout(timeout)
.setConnectionRequestTimeout(timeout)
.setSocketTimeout(timeout)
.build();
}