We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e36252a commit 9ca515fCopy full SHA for 9ca515f
1 file changed
core/src/main/java/software/xdev/mockserver/codec/PathParametersDecoder.java
@@ -57,18 +57,10 @@ public NottableString normalisePathWithParametersForMatching(final HttpRequest m
57
for(final String pathPart : matcher.getPath().getValue().split("/"))
58
{
59
final Matcher pathParameterName = PATH_VARIABLE_NAME_PATTERN.matcher(pathPart);
60
- if(pathParameterName.matches())
61
- {
62
- pathParts.add(".*");
63
- }
64
- else
65
66
- pathParts.add(pathPart);
67
+ pathParts.add(pathParameterName.matches() ? ".*" : pathPart);
68
}
69
return string(String.join("/", pathParts) + (value.endsWith("/") ? "/" : ""));
70
71
- return matcher.getPath();
72
73
return matcher.getPath();
74
0 commit comments