[fix] Fix incorrect depth check.

This commit is contained in:
Charlie McConnell 2011-11-16 19:15:45 -08:00
parent c03a450d9b
commit 3ab02f3ad7

View File

@ -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, '');