javascript updates. I'm starting to <3 JS

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

No files matched your search

+1 -2
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