From fc2c0e4b810152d75d165a1c5b89ab94b6c1bccd Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 26 Sep 2015 15:39:09 +0800 Subject: [PATCH] Open file bug on Windows --- file/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/files.go b/file/files.go index 11ef11f..f1c3dca 100644 --- a/file/files.go +++ b/file/files.go @@ -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)}) } }