Skip to content

Commit 50f58b4

Browse files
Sean Willisindexzero
Sean Willis
authored andcommitted
Forgot 'i' flag when changing from regex shorthand to string.
1 parent 2c98416 commit 50f58b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/http-proxy/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ common.rewriteCookieProperty = function rewriteCookieProperty(header, config, pr
220220
return rewriteCookieProperty(headerElement, config, property);
221221
});
222222
}
223-
return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)"), function(match, prefix, previousValue) {
223+
return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)", 'i'), function(match, prefix, previousValue) {
224224
var newValue;
225225
if (previousValue in config) {
226226
newValue = config[previousValue];

0 commit comments

Comments
 (0)