aboutsummaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2026-06-04 18:25:14 -0300
committerRaul Benencia <46945030+raul-te@users.noreply.github.com>2026-06-05 13:58:19 -0300
commit3fff6f8cdf452c89d0120845f85f552617129070 (patch)
tree14ebc3c2d7b795f53b3f1972d119dd40d69ad26e /internal/handlers
parent93c330d96e01a7b84af0db835e60351c266989ab (diff)
Use stdlib router
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/polling.go4
1 files changed, 1 insertions, 3 deletions
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)
nihil fit ex nihilo