1
0
Fork 0

Merge pull request #797 from rqlite/no-http-redirect-status

Remove 'redirect' from HTTP status
master
Philip O'Toole 3 years ago committed by GitHub
commit ecafd0abc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -532,9 +532,8 @@ func (s *Service) handleStatus(w http.ResponseWriter, r *http.Request) {
} }
httpStatus := map[string]interface{}{ httpStatus := map[string]interface{}{
"addr": s.Addr().String(), "addr": s.Addr().String(),
"auth": prettyEnabled(s.credentialStore != nil), "auth": prettyEnabled(s.credentialStore != nil),
"redirect": s.LeaderAPIAddr(),
} }
nodeStatus := map[string]interface{}{ nodeStatus := map[string]interface{}{

@ -358,6 +358,7 @@ class TestIdempotentJoin(unittest.TestCase):
deprovision_node(self.n1) deprovision_node(self.n1)
def test(self): def test(self):
'''Test that a node performing two join requests works fine'''
self.n0 = Node(RQLITED_PATH, '0') self.n0 = Node(RQLITED_PATH, '0')
self.n0.start() self.n0.start()
self.n0.wait_for_leader() self.n0.wait_for_leader()

Loading…
Cancel
Save