remove useless variable

Former-commit-id: fc2a71c662ba89abcb5851088e585ccd69c78142
This commit is contained in:
Henrique Dias
2017-01-25 14:01:30 +00:00
parent 2ce4386cfd
commit 1c114dedc7
2 changed files with 2 additions and 4 deletions

View File

@@ -138,7 +138,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
// If it's a dir and the path doesn't end with a trailing slash,
// redirect the user.
if fi.IsDir && !strings.HasSuffix(r.URL.Path, "/") {
http.Redirect(w, r, c.AddrPath+r.URL.Path+"/", http.StatusTemporaryRedirect)
http.Redirect(w, r, c.PrefixURL+r.URL.Path+"/", http.StatusTemporaryRedirect)
return 0, nil
}