diff --git a/client/admin_api.go b/client/admin_api.go index 087cf1b0..4d7205bb 100644 --- a/client/admin_api.go +++ b/client/admin_api.go @@ -311,6 +311,8 @@ func (svr *Service) apiPutConfig(w http.ResponseWriter, r *http.Request) { newRows = append(newRows, token) } } + } else { + newRows = tmpRows } content = strings.Join(newRows, "\n")