From 5f8ed2aa475e62d1f8e988a6be9daac6c06cf3c4 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 00:29:53 -0500 Subject: [PATCH] Update delete.go --- delete.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/delete.go b/delete.go index 30bd2bb..3f8e429 100644 --- a/delete.go +++ b/delete.go @@ -12,8 +12,7 @@ func deleteHandler(c web.C, w http.ResponseWriter, r *http.Request) { requestKey := r.Header.Get("Linx-Delete-Key") 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"]