We slice all prefix

parent e996b590
...@@ -28,7 +28,7 @@ function getMatchers(urls) { ...@@ -28,7 +28,7 @@ function getMatchers(urls) {
if (!m) { if (!m) {
return; return;
} }
var path = url.slice(m[0].length); var path = url.slice(m[0].length + 1);
console.log('proxy:', url, '->', dest); console.log('proxy:', url, '->', dest);
return ({url: path, dest: dest}); return ({url: path, dest: dest});
}})(r); }})(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