Skip to content

Commit

Permalink
Default accept header to identity
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Nov 1, 2019
1 parent 9ac36a6 commit cc0213d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/compression.js
Expand Up @@ -59,6 +59,10 @@ exports = module.exports = internals.Compression = class {
accept(request) {

const header = request.headers['accept-encoding'];
if (!header) {
return 'identity';
}

const common = this._common.get(header);
if (common) {
return common;
Expand Down

0 comments on commit cc0213d

Please sign in to comment.