浏览代码

fix PUT /api/config without token

fatedier 6 年之前
父节点
当前提交
5bc7fe2cea
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/admin_api.go

+ 2 - 0
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")