From c0323c8c62b79e148eb5bcb93f4d80e79b82e4da Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 5 Mar 2017 23:35:59 +0100 Subject: [PATCH] Fix: Do not send multiple redirects Signed-off-by: Knut Ahlers --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index c153370..d22a4e6 100644 --- a/main.go +++ b/main.go @@ -235,6 +235,7 @@ func waitForJob(res http.ResponseWriter, r *http.Request) { <-time.After(time.Duration(math.Pow(sleepBase, float64(loop))) * time.Second) http.Redirect(res, r, u.String(), http.StatusFound) + return } u := urlMust(router.Get("downloadAssets").URL("uid", uid.String()))