accept-encoding 제회
This commit is contained in:
+2
-1
@@ -193,7 +193,8 @@ public class HttpClientAccessTokenServiceWithParam implements HttpClientAccessTo
|
||||
connectionManager.setMaxTotal(maxTotalConnections);
|
||||
connectionManager.setDefaultMaxPerRoute(maxHostConnections);
|
||||
|
||||
try (CloseableHttpClient httpClient = HttpClients.custom().setConnectionManager(connectionManager).build();) {
|
||||
// http header에 zip 제외하려면 disableContentCompression() 추가해서 제외할것
|
||||
try (CloseableHttpClient httpClient = HttpClients.custom().setConnectionManager(connectionManager).disableContentCompression().disableDefaultUserAgent().build();) {
|
||||
HttpPost httpPost = new HttpPost(uri);
|
||||
httpPost.setEntity(new UrlEncodedFormEntity(formParams, charset));
|
||||
httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded; charset=" + encode);
|
||||
|
||||
Reference in New Issue
Block a user