summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authortoby <smorgrav@yahoo-inc.com>2019-03-15 17:04:21 +0100
committertoby <smorgrav@yahoo-inc.com>2019-03-15 17:04:21 +0100
commit58b6d61bf17de39fdb01df8c9b751273395e77c5 (patch)
treeb6cb27c4987ed693a6c1baddfc0e9aadc2d51d26 /container-core
parent5039958f9fa1d692d913ac97a5c179605f83b07e (diff)
Remove leftover logic from another implementation regarding opt prefixes
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/restapi/Path.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/restapi/Path.java b/container-core/src/main/java/com/yahoo/restapi/Path.java
index 0afa196b607..3aa23fbc916 100644
--- a/container-core/src/main/java/com/yahoo/restapi/Path.java
+++ b/container-core/src/main/java/com/yahoo/restapi/Path.java
@@ -99,7 +99,7 @@ public class Path {
*/
public boolean matches(String pathSpec) {
if (matches_inner(pathSpec)) return true;
- if (optionalPrefix.isEmpty() || optionalPrefix.length() > pathSpec.length()) return false;
+ if (optionalPrefix.isEmpty()) return false;
return matches_inner(optionalPrefix + pathSpec);
}