提交 e0827e30 编写于 作者: 于玉桔 提交者: wu-sheng

Unified toPath method (#2754)

上级 b625d8a1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册