Oops, that site argument isn't needed.
This commit is contained in:
parent
15dd184106
commit
c53dab9e6b
@ -210,7 +210,7 @@ func (h *UploadHandlers) Delete(w http.ResponseWriter, r *http.Request) {
|
|||||||
h.logDelete.Printf("| %s | %s | %s | %s", r.Header.Get("X-Real-IP"), netTyp, saltedHash, r.UserAgent())
|
h.logDelete.Printf("| %s | %s | %s | %s", r.Header.Get("X-Real-IP"), netTyp, saltedHash, r.UserAgent())
|
||||||
|
|
||||||
w.WriteHeader(http.StatusNoContent)
|
w.WriteHeader(http.StatusNoContent)
|
||||||
web.Deleted(utils.MainSite(r.Host), site)
|
web.Deleted(utils.MainSite(r.Host))
|
||||||
}
|
}
|
||||||
|
|
||||||
func NotFound(w http.ResponseWriter, r *http.Request) {
|
func NotFound(w http.ResponseWriter, r *http.Request) {
|
||||||
|
@ -4,7 +4,7 @@ block header
|
|||||||
h1 Deleted
|
h1 Deleted
|
||||||
|
|
||||||
block body
|
block body
|
||||||
:go:func Deleted(mainSite, site string)
|
:go:func Deleted(mainSite string)
|
||||||
section
|
section
|
||||||
h2 File was successfully deleted.
|
h2 File was successfully deleted.
|
||||||
center
|
center
|
||||||
|
Loading…
Reference in New Issue
Block a user