Skip to content

Commit

Permalink
fix PUT /api/config without token
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Feb 12, 2019
1 parent 1723d7b commit 5bc7fe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/admin_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 5bc7fe2

Please sign in to comment.