From 5bc7fe2cea99823840340e4c67eb17f1f55a67b9 Mon Sep 17 00:00:00 2001 From: fatedier Date: Tue, 12 Feb 2019 14:59:30 +0800 Subject: [PATCH 1/2] fix PUT /api/config without token --- client/admin_api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/admin_api.go b/client/admin_api.go index 087cf1b..4d7205b 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") From de4bfcc43c28d97730bfd92b1269d0d725c989d9 Mon Sep 17 00:00:00 2001 From: fatedier Date: Tue, 12 Feb 2019 15:03:40 +0800 Subject: [PATCH 2/2] bump version to v0.24.1 --- utils/version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/version/version.go b/utils/version/version.go index 60aa7ee..41897cb 100644 --- a/utils/version/version.go +++ b/utils/version/version.go @@ -19,7 +19,7 @@ import ( "strings" ) -var version string = "0.24.0" +var version string = "0.24.1" func Full() string { return version