Update delete.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 00:29:53 -05:00
parent 84f455da41
commit 5f8ed2aa47
1 changed files with 1 additions and 2 deletions

View File

@ -12,8 +12,7 @@ func deleteHandler(c web.C, w http.ResponseWriter, r *http.Request) {
requestKey := r.Header.Get("Linx-Delete-Key") requestKey := r.Header.Get("Linx-Delete-Key")
if len(r.URL.Query().Get("linx-delete-key")) > 0 { if len(r.URL.Query().Get("linx-delete-key")) > 0 {
_ := requestKey requestKey = r.URL.Query().Get("linx-delete-key")
requestKey := r.URL.Query().Get("linx-delete-key")
} }
filename := c.URLParams["name"] filename := c.URLParams["name"]