Use http.StatusTemporaryRedirect instead of hardcoded 307
This commit is contained in:
parent
038cac6a62
commit
857dc5f57c
3 changed files with 8 additions and 8 deletions
|
@ -143,7 +143,7 @@ func readHandler(w http.ResponseWriter, r *http.Request) {
|
|||
if file == "" {
|
||||
it := e.Iterator(epub.EITERATOR_LINEAR)
|
||||
defer it.Close()
|
||||
http.Redirect(w, r, base+id+"/"+it.CurrUrl(), 307)
|
||||
http.Redirect(w, r, base+id+"/"+it.CurrUrl(), http.StatusTemporaryRedirect)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue