We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baefb00 commit 551608dCopy full SHA for 551608d
src/DecoderPlugin.php
@@ -52,9 +52,9 @@ public function __construct(array $config = [])
52
*/
53
public function handleRequest(RequestInterface $request, callable $next, callable $first)
54
{
55
- $encodings = extension_loaded('zlib') ? ['gzip', 'deflate', 'compress'] : [];
+ $encodings = extension_loaded('zlib') ? ['gzip', 'deflate', 'compress'] : ['identity'];
56
57
- if ($this->useContentEncoding && count($encodings)) {
+ if ($this->useContentEncoding) {
58
$request = $request->withHeader('Accept-Encoding', $encodings);
59
}
60
$encodings[] = 'chunked';
0 commit comments