one more thing

This commit is contained in:
Henrique Dias committed 2016-07-01 15:51:02 +01:00
1 parent d5306b594f
commit 7ed515dba8
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
}
if fi.IsDir && !strings.HasSuffix(r.URL.Path, "/") {
http.Redirect(w, r, r.URL.Path+"/", http.StatusTemporaryRedirect)
http.Redirect(w, r, c.AddrPath+r.URL.Path+"/", http.StatusTemporaryRedirect)
return 0, nil
}
}