We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5e084 commit f540fadCopy full SHA for f540fad
lib/router.js
@@ -28,7 +28,7 @@ function getTargetFromProxyTable(req, table) {
28
_.forIn(table, function(value, key) {
29
if (containsPath(key)) {
30
31
- if (hostAndPath.indexOf(key) > -1) { // match 'localhost:3000/api'
+ if (hostAndPath.indexOf(key) == 0 || path.indexOf(key) == 0) { // match 'localhost:3000/api'
32
result = table[key];
33
logger.debug('[HPM] Router table match: "%s"', key);
34
return false;
0 commit comments