We slice all prefix

parent e996b590
......@@ -28,7 +28,7 @@ function getMatchers(urls) {
if (!m) {
return;
}
var path = url.slice(m[0].length);
var path = url.slice(m[0].length + 1);
console.log('proxy:', url, '->', dest);
return ({url: path, dest: dest});
}})(r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment