Commit 745930e3 by Gil Sade

changed accept encoding header to *

parent 06092d89
group 'com.ipgallery.common'
version '1.1.4'
version '1.1.5'
apply plugin: 'java'
apply plugin: 'maven-publish'
......
......@@ -384,7 +384,8 @@ public class SimpleRestClient extends SimpleHttpClient {
else if (request.getMethod() == SimpleHttpRequest.Method.POST) {
request.addHeader(HttpHeaders.CONTENT_TYPE, "application/json; charset=UTF-8");
request.addHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
request.addHeader(HttpHeaders.ACCEPT_ENCODING, "gzip, deflate");
// request.addHeader(HttpHeaders.ACCEPT_ENCODING, "gzip, deflate");
request.addHeader(HttpHeaders.ACCEPT_ENCODING, "*");
} else if (request.getMethod() == SimpleHttpRequest.Method.DELETE) {
request.addHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment