Sfoglia il codice sorgente

fix PUT /api/config without token

fatedier 6 anni fa
parent
commit
5bc7fe2cea
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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")