We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528985a commit f87cbd9Copy full SHA for f87cbd9
pkg/filters/fileserver/fileserver_test.go
@@ -341,10 +341,11 @@ func TestFileServer(t *testing.T) {
341
}
342
343
func toWindowsPath(path string) string {
344
+ newPath := path
345
if strings.HasPrefix(path, "/") {
- path, _ = filepath.Abs(path)
346
+ newPath, _ = filepath.Abs(path)
347
- newPath := filepath.FromSlash(path)
348
+ newPath = filepath.FromSlash(newPath)
349
if strings.HasSuffix(path, "/") {
350
newPath += string(os.PathSeparator)
351
0 commit comments