fix: judge can proxy with ext (close #4688)

pull/4522/head
Andy Hsu 2023-07-03 20:41:37 +08:00
parent f09bb88846
commit 89832c296f
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ func IsSubPath(path string, subPath string) bool {
func Ext(path string) string {
ext := stdpath.Ext(path)
if strings.HasPrefix(ext, ".") {
return ext[1:]
ext = ext[1:]
}
return ext
return strings.ToLower(ext)
}
func EncodePath(path string, all ...bool) string {