forked from electricdusk/rushlink
parent
26be9b5104
commit
50baaeadf1
@ -142,9 +142,11 @@ func (rl *rushlink) viewPasteHandlerInner(w http.ResponseWriter, r *http.Request
|
|||||||
rl.viewFileUploadHandler(w, r, fu)
|
rl.viewFileUploadHandler(w, r, fu)
|
||||||
return
|
return
|
||||||
case db.PasteTypeRedirect:
|
case db.PasteTypeRedirect:
|
||||||
if flags&viewNoRedirect == 0 {
|
if flags&viewNoRedirect != 0 {
|
||||||
http.Redirect(w, r, p.RedirectURL().String(), http.StatusTemporaryRedirect)
|
w.Write([]byte(p.RedirectURL().String()))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
http.Redirect(w, r, p.RedirectURL().String(), http.StatusTemporaryRedirect)
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
panic("paste type unsupported")
|
panic("paste type unsupported")
|
||||||
|
Loading…
Reference in New Issue
Block a user