diff options
author | Chad Weider <cweider@oofn.net> | 2012-10-09 01:32:21 -0700 |
---|---|---|
committer | Chad Weider <cweider@oofn.net> | 2012-10-09 01:32:21 -0700 |
commit | 9d1274abafb1887c2d4c7586946954e6e6532347 (patch) | |
tree | cb46c26bbce87839c6ecc684e76e459bb46bbf11 /src/node/utils | |
parent | 90373964d31c61013fff941459c84688170636a8 (diff) | |
download | etherpad-lite-9d1274abafb1887c2d4c7586946954e6e6532347.zip |
Drop method deprecated in Express 3.x.
Diffstat (limited to 'src/node/utils')
-rw-r--r-- | src/node/utils/caching_middleware.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/utils/caching_middleware.js b/src/node/utils/caching_middleware.js index 1f533673..c6b23713 100644 --- a/src/node/utils/caching_middleware.js +++ b/src/node/utils/caching_middleware.js @@ -48,7 +48,7 @@ CachingMiddleware.prototype = new function () { var old_res = {}; var supportsGzip = - req.header('Accept-Encoding', '').indexOf('gzip') != -1; + (req.get('Accept-Encoding') || '').indexOf('gzip') != -1; var path = require('url').parse(req.url).path; var cacheKey = (new Buffer(path)).toString('base64').replace(/[\/\+=]/g, ''); |