From 3fff6f8cdf452c89d0120845f85f552617129070 Mon Sep 17 00:00:00 2001 From: Raúl Benencia Date: Thu, 4 Jun 2026 18:25:14 -0300 Subject: Use stdlib router --- internal/handlers/polling.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/handlers/polling.go') diff --git a/internal/handlers/polling.go b/internal/handlers/polling.go index c5aeb50..6a01e99 100644 --- a/internal/handlers/polling.go +++ b/internal/handlers/polling.go @@ -21,7 +21,6 @@ import ( "net/http" "os" - "github.com/gorilla/mux" "github.com/thousandeyes/shoelaces/internal/log" "github.com/thousandeyes/shoelaces/internal/polling" "github.com/thousandeyes/shoelaces/internal/server" @@ -49,9 +48,8 @@ func PollHandler(w http.ResponseWriter, r *http.Request) { return } - vars := mux.Vars(r) // iPXE MAC addresses come with dashes instead of colons - mac := utils.MacDashToColon(vars["mac"]) + mac := utils.MacDashToColon(r.PathValue("mac")) host := r.FormValue("host") err = validateMACAndIP(env.Logger, mac, ip) -- cgit v1.2.3