diff --git a/lib/web/apiserver.go b/lib/web/apiserver.go index 462787c2fa3f4..aaf33765d10c1 100644 --- a/lib/web/apiserver.go +++ b/lib/web/apiserver.go @@ -665,7 +665,7 @@ func (h *Handler) bindDefaultEndpoints() { // endpoint returns the default authentication method and configuration that // the server supports. the /webapi/ping/:connector endpoint can be used to // query the authentication configuration for a specific connector. - h.GET("/webapi/ping", h.WithUnauthenticatedHighLimiter(h.ping)) + h.GET("/webapi/ping", httplib.MakeHandler(h.ping)) h.GET("/webapi/ping/:connector", h.WithUnauthenticatedHighLimiter(h.pingWithConnector)) // Unauthenticated access to JWT public keys. @@ -924,7 +924,7 @@ func (h *Handler) bindDefaultEndpoints() { h.DELETE("/webapi/sites/:site/discoveryconfig/:name", h.WithClusterAuth(h.discoveryconfigDelete)) // Connection upgrades. - h.GET("/webapi/connectionupgrade", h.WithHighLimiter(h.connectionUpgrade)) + h.GET("/webapi/connectionupgrade", httplib.MakeHandler(h.connectionUpgrade)) // create user events. h.POST("/webapi/precapture", h.WithUnauthenticatedLimiter(h.createPreUserEventHandle))