Commit 3ab02f3a authored by Charlie McConnell's avatar Charlie McConnell

[fix] Fix incorrect depth check.

parent c03a450d
......@@ -140,7 +140,7 @@ ProxyTable.prototype.getProxyLocation = function (req) {
var pathSegments = route.path.split('/');
if (pathSegments.length > 0) {
if (pathSegments.length > 1) {
// don't include the proxytable path segments in the proxied request url
pathSegments = new RegExp("/" + pathSegments.slice(1).join('/'));
req.url = req.url.replace(pathSegments, '');
......
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