1
0
mirror of https://github.com/Luzifer/tex-api.git synced 2024-09-19 09:32:56 +00:00

Fix: Do not send multiple redirects

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-03-05 23:35:59 +01:00
parent 1554acab6d
commit c0323c8c62
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -235,6 +235,7 @@ func waitForJob(res http.ResponseWriter, r *http.Request) {
<-time.After(time.Duration(math.Pow(sleepBase, float64(loop))) * time.Second) <-time.After(time.Duration(math.Pow(sleepBase, float64(loop))) * time.Second)
http.Redirect(res, r, u.String(), http.StatusFound) http.Redirect(res, r, u.String(), http.StatusFound)
return
} }
u := urlMust(router.Get("downloadAssets").URL("uid", uid.String())) u := urlMust(router.Get("downloadAssets").URL("uid", uid.String()))