From e8639d87ceeca499cece6068eefeac3d4c0c3a2a Mon Sep 17 00:00:00 2001 From: Edy Date: Thu, 17 May 2012 12:08:19 +0200 Subject: [PATCH] fixes issue #707 Don't set cached cookies --- src/node/utils/caching_middleware.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node/utils/caching_middleware.js b/src/node/utils/caching_middleware.js index 70d5a08c4..ba2b462df 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); };