Skip to content

Commit d8854b8

Browse files
authored
Merge pull request #89 from apisearch-io/feature/improved-encoding-header
All CURL server calls are done with encoding enabled
2 parents 9966f08 + 2e13442 commit d8854b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Http/CurlAdapter.php

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function getByRequestParts(
4646
curl_setopt($c, CURLOPT_URL, $formattedUrl);
4747
curl_setopt($c, CURLOPT_HEADER, false);
4848
curl_setopt($c, CURLOPT_CUSTOMREQUEST, $method);
49+
curl_setopt($c, CURLOPT_ENCODING, 'gzip, deflate');
4950

5051
if (!in_array($method, ['GET', 'HEAD'])) {
5152
curl_setopt($c, CURLOPT_POSTFIELDS, $json);

0 commit comments

Comments
 (0)