浏览代码

jfinal 4.3

James 6 年之前
父节点
当前提交
5d8a7a4bc8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/jfinal/proxy/ProxyCompiler.java

+ 1 - 1
src/main/java/com/jfinal/proxy/ProxyCompiler.java

@@ -102,7 +102,7 @@ public class ProxyCompiler {
 			}
 			
 			// 去除后缀字符 '/'
-			if (path.length() > 1 && path.endsWith(File.separator)) {
+			if (path.length() > 1 && ( path.endsWith("/")) || path.endsWith(File.separator) ) {
 				path = path.substring(0, path.length() - 1);
 			}