Use http.StatusTemporaryRedirect instead of hardcoded 307

This commit is contained in:
Las Zenow 2012-10-29 21:43:55 +01:00
parent 038cac6a62
commit 857dc5f57c
3 changed files with 8 additions and 8 deletions

View file

@ -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
}