mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Merge pull request #1049 from cweider/fix-express
Drop method deprecated in Express 3.x.
This commit is contained in:
commit
442c5714f9
1 changed files with 1 additions and 1 deletions
|
@ -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, '');
|
||||
|
|
Loading…
Reference in a new issue