From 78f7cb1d5a580b35a2a9970f557f8bb9fc8d8a8d Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 18 Apr 2014 10:56:00 -0700 Subject: [PATCH] agent: Fixing similar deregister routing bug with checks --- command/agent/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/http.go b/command/agent/http.go index 069900ab8d..8e187f94fd 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -80,7 +80,7 @@ func (s *HTTPServer) registerHandlers(enableDebug bool) { s.mux.HandleFunc("/v1/agent/force-leave/", s.wrap(s.AgentForceLeave)) s.mux.HandleFunc("/v1/agent/check/register", s.wrap(s.AgentRegisterCheck)) - s.mux.HandleFunc("/v1/agent/check/deregister", s.wrap(s.AgentDeregisterCheck)) + s.mux.HandleFunc("/v1/agent/check/deregister/", s.wrap(s.AgentDeregisterCheck)) s.mux.HandleFunc("/v1/agent/check/pass/", s.wrap(s.AgentCheckPass)) s.mux.HandleFunc("/v1/agent/check/warn/", s.wrap(s.AgentCheckWarn)) s.mux.HandleFunc("/v1/agent/check/fail/", s.wrap(s.AgentCheckFail))