diff options
-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); }; |