From 50f58b4cd9b4422a11512a6a065432159b5bc806 Mon Sep 17 00:00:00 2001 From: Sean Willis Date: Tue, 20 Feb 2018 20:40:49 -0800 Subject: [PATCH] Forgot 'i' flag when changing from regex shorthand to string. --- lib/http-proxy/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-proxy/common.js b/lib/http-proxy/common.js index c00994cde..8fae2cd25 100644 --- a/lib/http-proxy/common.js +++ b/lib/http-proxy/common.js @@ -220,7 +220,7 @@ common.rewriteCookieProperty = function rewriteCookieProperty(header, config, pr return rewriteCookieProperty(headerElement, config, property); }); } - return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)"), function(match, prefix, previousValue) { + return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)", 'i'), function(match, prefix, previousValue) { var newValue; if (previousValue in config) { newValue = config[previousValue];