Unified toPath method (#2754)
This commit is contained in:
parent
b625d8a170
commit
e0827e30ea
|
|
@ -77,8 +77,9 @@ public class SynchronousDispatcherInterceptor implements InstanceMethodsAroundIn
|
|||
}
|
||||
|
||||
private static String toPath(String uri) {
|
||||
if (uri.contains("?")) {
|
||||
return uri.substring(0, uri.indexOf("?"));
|
||||
int index = uri.indexOf("?");
|
||||
if (index > -1) {
|
||||
return uri.substring(0, index);
|
||||
} else {
|
||||
return uri;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue