Skip to content

Commit cb0c3ec

Browse files
committed
ask for identity encoding if gzip not available.
1 parent baefb00 commit cb0c3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DecoderPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(array $config = [])
5252
*/
5353
public function handleRequest(RequestInterface $request, callable $next, callable $first)
5454
{
55-
$encodings = extension_loaded('zlib') ? ['gzip', 'deflate', 'compress'] : [];
55+
$encodings = extension_loaded('zlib') ? ['gzip', 'deflate', 'compress'] : ['identity'];
5656

5757
if ($this->useContentEncoding && count($encodings)) {
5858
$request = $request->withHeader('Accept-Encoding', $encodings);

0 commit comments

Comments
 (0)