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

Commit ea00394

Browse files
committed
Client: checking equals gzip, not just contains
1 parent 0465d46 commit ea00394

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
@@ -678,7 +678,7 @@ private byte[] _requestRaw(Method m, String url, String json, List<String> hosts
678678

679679
final byte[] rawResponse;
680680
String encoding = hostConnection.getContentEncoding();
681-
if (encoding != null && encoding.contains("gzip")) {
681+
if (encoding != null && encoding.equals("gzip")) {
682682
rawResponse = _toByteArray(new GZIPInputStream(stream));
683683
} else {
684684
rawResponse = _toByteArray(stream);

0 commit comments

Comments
 (0)