Change redirect status code to Temporary Redirect

This commit is contained in:
Daan Sprenkels 2020-04-22 18:24:46 +02:00
parent 42ccc18002
commit 728d3833c3

View File

@ -122,7 +122,7 @@ func (rl *rushlink) viewPasteHandlerInner(w http.ResponseWriter, r *http.Request
return
case db.PasteTypeRedirect:
if flags&viewNoRedirect == 0 {
http.Redirect(w, r, p.RedirectURL().String(), http.StatusSeeOther)
http.Redirect(w, r, p.RedirectURL().String(), http.StatusTemporaryRedirect)
}
return
default: