Skip to content
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

Adding support for gzip responses #255

Merged
merged 3 commits into from
Nov 20, 2012
Merged

Conversation

geek
Copy link
Member

@geek geek commented Nov 19, 2012

No description provided.

var acceptEncoding = rawReq && rawReq.headers ? rawReq.headers['accept-encoding'] : null;
var isGzip = acceptEncoding && acceptEncoding.indexOf('gzip') !== -1;

if(!isGzip || isHeadMethod && !self._payload) {
Copy link
Contributor

Choose a reason for hiding this comment

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

condition is not clear (using both || and && in one line)

hueniverse pushed a commit that referenced this pull request Nov 20, 2012
Adding support for gzip responses
@hueniverse hueniverse merged commit 5a8f703 into hapijs:develop Nov 20, 2012
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
Adding support for gzip responses
@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants