Skip to content

ask for identity encoding if gzip not available. #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Jan 25, 2016

@@ -52,7 +52,7 @@ public function __construct(array $config = [])
*/
public function handleRequest(RequestInterface $request, callable $next, callable $first)
{
$encodings = extension_loaded('zlib') ? ['gzip', 'deflate', 'compress'] : [];
$encodings = extension_loaded('zlib') ? ['gzip', 'deflate', 'compress'] : ['identity'];

if ($this->useContentEncoding && count($encodings)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

count should be removed, as it will always be true

Copy link
Contributor Author

@dbu dbu Jan 25, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbu dbu force-pushed the identity-encoding-if-no-gzip branch from cb0c3ec to 551608d Compare January 25, 2016 12:37
@joelwurtz
Copy link
Member

👍

@joelwurtz joelwurtz closed this Jan 26, 2016
@joelwurtz joelwurtz reopened this Jan 26, 2016
joelwurtz added a commit that referenced this pull request Jan 26, 2016
ask for identity encoding if gzip not available.
@joelwurtz joelwurtz merged commit 3d77e7d into master Jan 26, 2016
@joelwurtz joelwurtz deleted the identity-encoding-if-no-gzip branch January 26, 2016 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants