Fix changes from review.

This commit is contained in:
Angel Borroy
2020-01-17 14:25:59 +01:00
parent 9ff35e7807
commit ee21af7b27
2 changed files with 3 additions and 3 deletions

View File

@@ -2501,7 +2501,7 @@ public class SolrInformationServer implements InformationServer
response);
InputStream ris = response.getContent();
if (null != response.getContentEncoding() && response.getContentEncoding().equals("gzip"))
if (response.getContentEncoding().equals("gzip"))
{
ris = new GZIPInputStream(ris);
}

View File

@@ -118,7 +118,7 @@ public class SOLRAPIClient
/**
* This option enables ("Accept-Encoding": "gzip") header for compression
* in GET_CONTENT requests. Additional configuration is required in
* Alfresco Repository Tomcat Connector or HTTP Web Proxy to deal w
* Alfresco Repository Tomcat Connector or HTTP Web Proxy to deal
* with compressed requests.
*/
private boolean compression;
@@ -1137,7 +1137,7 @@ public class SOLRAPIClient
GetRequest req = new GetRequest(url.toString());
Map<String, String> headers = new HashMap<String, String>();
Map<String, String> headers = new HashMap<>();
if(modifiedSince != null)
{
headers.put("If-Modified-Since", String.valueOf(DateUtil.formatDate(new Date(modifiedSince))));