Open file bug on Windows

This commit is contained in:
Liang Ding 2015-09-26 15:39:09 +08:00
parent 5794df245c
commit fc2c0e4b81
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ func FindHandler(w http.ResponseWriter, r *http.Request) {
for _, r := range rs {
substr := util.Str.LCS(path, *r)
founds = append(founds, &foundPath{Path: *r, score: len(substr)})
founds = append(founds, &foundPath{Path: filepath.ToSlash(*r), score: len(substr)})
}
}