mirror of
https://github.com/Luzifer/tex-api.git
synced 2024-09-19 17:42:55 +00:00
Fix: Do not send multiple redirects
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1554acab6d
commit
c0323c8c62
1
main.go
1
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)
|
<-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()))
|
||||||
|
Loading…
Reference in New Issue
Block a user