diff --git a/agent/http.go b/agent/http.go index 58c7a2c41a..7402ef5f95 100644 --- a/agent/http.go +++ b/agent/http.go @@ -608,7 +608,7 @@ func (s *HTTPServer) marshalJSON(req *http.Request, obj interface{}) ([]byte, er if err != nil { return nil, err } - return buf, err + return buf, nil } // Returns true if the UI is enabled.