Skip to content

Commit

Permalink
IE fails on "deflate" enconding. Set "gzip" by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Bifuer committed Jun 16, 2015
1 parent f6af46d commit aa5c0a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/Gangway.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,16 +668,16 @@ function getEncoding(encodings){
} else if(e.value==='deflate'){
deflate = e.q>0;
} else if(e.value==='gzip'){
deflate = e.q>0;
gzip = e.q>0;
} else if(e.value==='identity'){
identity = e.q>0;
}
}

if(all || deflate){
return 'deflate';
} else if(gzip){
if(all || gzip){
return 'gzip';
} else if(deflate){
return 'deflate';
} else if(identity) {
return 'identity';
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pillars",
"description": "Pillars.js web development framework for Node.js",
"version": "0.2.21",
"version": "0.2.22",
"author": {
"name": "Javier Gallego Martín",
"email": "bifuer@gmail.com"
Expand Down

0 comments on commit aa5c0a0

Please sign in to comment.