Skip to content

Commit

Permalink
use redirect instead stream
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Nov 22, 2023
1 parent 0f47aff commit 23e57ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ func main() {
return err
}

return streamFile(c, client, snapshot.Filename, snapshot.URL)
// return streamFile(c, client, snapshot.Filename, snapshot.URL)
return c.Redirect(http.StatusFound, snapshot.URL)
}
}
api := func(c echo.Context) error {
Expand Down

0 comments on commit 23e57ee

Please sign in to comment.