diff --git a/command/agent/http.go b/command/agent/http.go index 346283786..3322caa64 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -347,7 +347,7 @@ func (s *HTTPServer) ResolveToken(req *http.Request) (*acl.ACL, error) { } // registerHandlers is used to attach our handlers to the mux -func (s HTTPServer) registerHandlers(enableDebug bool) { +func (s *HTTPServer) registerHandlers(enableDebug bool) { s.mux.HandleFunc("/v1/jobs", s.wrap(s.JobsRequest)) s.mux.HandleFunc("/v1/jobs/parse", s.wrap(s.JobsParseRequest)) s.mux.HandleFunc("/v1/job/", s.wrap(s.JobSpecificRequest))