diff options
author | Edy <eduard@baun.de> | 2012-05-17 12:08:19 +0200 |
---|---|---|
committer | Edy <eduard@baun.de> | 2012-05-17 12:08:19 +0200 |
commit | e8639d87ceeca499cece6068eefeac3d4c0c3a2a (patch) | |
tree | 1540956a9de2d61296a94ea56dee041cde878c36 | |
parent | 916e52a1ebd5d857b07ce5cb5210eabe5a72d988 (diff) | |
download | etherpad-lite-e8639d87ceeca499cece6068eefeac3d4c0c3a2a.zip |
fixes issue #707
Don't set cached cookies
-rw-r--r-- | src/node/utils/caching_middleware.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node/utils/caching_middleware.js b/src/node/utils/caching_middleware.js index 70d5a08c..ba2b462d 100644 --- a/src/node/utils/caching_middleware.js +++ b/src/node/utils/caching_middleware.js @@ -73,6 +73,9 @@ CachingMiddleware.prototype = new function () { var _headers = {}; old_res.setHeader = res.setHeader; res.setHeader = function (key, value) { + // Don't set cookies, see issue #707 + if (key.toLowerCase() === 'set-cookie') return; + _headers[key.toLowerCase()] = value; old_res.setHeader.call(res, key, value); }; |