diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -28,7 +28,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) { repoName := r.URL.Query().Get("repo") version := r.URL.Query().Get("version") comment := r.URL.Query().Get("comment") - whitelist := r.URL.Query().Get("whitelist") switch route { case "/help": @@ -89,18 +88,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) { setCurrentRepo(repo, "HTTP", "doRelease() ?") return - case "/whitelist": - repo := me.repos.View.FindByName(repoName) - if repo == nil { - log.Info("FindRepoByName() returned nil") - return - } - log.Info("whitelisted " + repo.Name()) - if whitelist == "false" { - repo.Status.Whitelist = false - } else { - repo.Status.Whitelist = true - } case "/testNext": testNext() return |
