From b40c3f7ed94c32cf8fc02a6ebb896ec2eacf9c12 Mon Sep 17 00:00:00 2001 From: giveup Date: Mon, 25 May 2020 17:58:34 +0800 Subject: [PATCH] fixed typos (#873) Co-authored-by: Your Name --- .../java/run/halo/app/utils/HttpClientUtils.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/run/halo/app/utils/HttpClientUtils.java b/src/main/java/run/halo/app/utils/HttpClientUtils.java index 9294508d4..7d494fcf0 100644 --- a/src/main/java/run/halo/app/utils/HttpClientUtils.java +++ b/src/main/java/run/halo/app/utils/HttpClientUtils.java @@ -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(); }