fix PUT /api/config without token

This commit is contained in:
fatedier 2019-02-12 14:59:30 +08:00
parent 1723d7b651
commit 5bc7fe2cea
1 changed files with 2 additions and 0 deletions

View File

@ -311,6 +311,8 @@ func (svr *Service) apiPutConfig(w http.ResponseWriter, r *http.Request) {
newRows = append(newRows, token) newRows = append(newRows, token)
} }
} }
} else {
newRows = tmpRows
} }
content = strings.Join(newRows, "\n") content = strings.Join(newRows, "\n")