From d8e0398919931408caf4dc07b0d4a277bfd4a288 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 00:27:16 -0500 Subject: [PATCH] Update delete.go --- delete.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/delete.go b/delete.go index b2d0ad7..2fd220e 100644 --- a/delete.go +++ b/delete.go @@ -10,9 +10,9 @@ import ( func deleteHandler(c web.C, w http.ResponseWriter, r *http.Request) { requestKey := r.Header.Get("Linx-Delete-Key") - urlRequestKey := r.URL.Query().Get("linx-delete-key") - if len(urlRequestKey) > 0 { - requestKey := urlRequestKey + + if len(r.URL.Query().Get("linx-delete-key")) > 0 { + requestKey := r.URL.Query().Get("linx-delete-key") } filename := c.URLParams["name"]