Update delete.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 00:27:16 -05:00
parent 0f0753ad60
commit d8e0398919
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ import (
func deleteHandler(c web.C, w http.ResponseWriter, r *http.Request) { 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")
urlRequestKey := r.URL.Query().Get("linx-delete-key")
if len(urlRequestKey) > 0 { if len(r.URL.Query().Get("linx-delete-key")) > 0 {
requestKey := urlRequestKey requestKey := r.URL.Query().Get("linx-delete-key")
} }
filename := c.URLParams["name"] filename := c.URLParams["name"]