Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 116153c

Browse files
author
Clément Le Provost
committed
Merge pull request #72 from algolia/fix/EqualsGZIP
Client: checking equals gzip, not just contains
2 parents b4f7ff8 + ea00394 commit 116153c

File tree

1 file changed

+1
-1
lines changed
  • algoliasearch/src/main/java/com/algolia/search/saas

1 file changed

+1
-1
lines changed

algoliasearch/src/main/java/com/algolia/search/saas/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ private byte[] _requestRaw(Method m, String url, String json, List<String> hosts
686686

687687
final byte[] rawResponse;
688688
String encoding = hostConnection.getContentEncoding();
689-
if (encoding != null && encoding.contains("gzip")) {
689+
if (encoding != null && encoding.equals("gzip")) {
690690
rawResponse = _toByteArray(new GZIPInputStream(stream));
691691
} else {
692692
rawResponse = _toByteArray(stream);

0 commit comments

Comments
 (0)