mirror of
https://github.com/Luzifer/tex-api.git
synced 2024-11-08 16:20:04 +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 changed files with 1 additions and 0 deletions
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)
|
||||
|
||||
http.Redirect(res, r, u.String(), http.StatusFound)
|
||||
return
|
||||
}
|
||||
|
||||
u := urlMust(router.Get("downloadAssets").URL("uid", uid.String()))
|
||||
|
|
Loading…
Reference in a new issue