Skip to content

Commit 33ebd1f

Browse files
committed
backward compatibility #359
1 parent 7655a6a commit 33ebd1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Server.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,16 @@ function Server(compiler, options) {
143143
if(!Array.isArray(options.proxy)) {
144144
options.proxy = Object.keys(options.proxy).map(function(context) {
145145
var proxyOptions;
146+
var correctedContext = context.replace(/\/\*$/, "");
146147

147148
if(typeof options.proxy[context] === 'string') {
148149
proxyOptions = {
149-
context: context,
150+
context: correctedContext,
150151
target: options.proxy[target]
151152
};
152153
} else {
153154
proxyOptions = options.proxy[context];
154-
proxyOptions.context = context;
155+
proxyOptions.context = correctedContext;
155156
}
156157

157158
return proxyOptions;

0 commit comments

Comments
 (0)