javascript updates. I'm starting to <3 JS

This commit is contained in:
Henrique Dias
2016-06-21 14:23:16 +01:00
parent 8dd42a284b
commit 0078658c39
2 changed files with 161 additions and 84 deletions

View File

@@ -135,8 +135,7 @@ func (fi FileInfo) Rename(w http.ResponseWriter, r *http.Request) (int, error) {
return ErrorToHTTPCode(err), err
}
http.Redirect(w, r, strings.Replace(r.URL.Path, fi.Name, newname, 1), http.StatusTemporaryRedirect)
return 0, nil
return http.StatusOK, nil
}
// ServeAsHTML is used to serve single file pages