Explorar o código

fix PUT /api/config without token

fatedier %!s(int64=6) %!d(string=hai) anos
pai
achega
5bc7fe2cea
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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")