1
0
Fork 0
mirror of https://github.com/Luzifer/tex-api.git synced 2024-11-09 16:50:03 +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)
http.Redirect(res, r, u.String(), http.StatusFound)
return
}
u := urlMust(router.Get("downloadAssets").URL("uid", uid.String()))