Skip to content

Commit

Permalink
Forgot 'i' flag when changing from regex shorthand to string.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Willis authored and indexzero committed Apr 20, 2018
1 parent 2c98416 commit 50f58b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 50f58b4

Please sign in to comment.