diff --git a/handlers.go b/handlers.go index c9a6d8f..08ce727 100644 --- a/handlers.go +++ b/handlers.go @@ -265,19 +265,6 @@ func (rl *rushlink) newFileUploadPasteHandler(w http.ResponseWriter, r *http.Req rl.viewActionSuccess(w, r, paste, fu) } -func (rl *rushlink) newPasteHandlerURLEncoded(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) { - if err := r.ParseForm(); err != nil { - next(w, r) - return - } - shorten := r.PostFormValue("shorten") - if shorten == "" { - rl.renderError(w, r, http.StatusBadRequest, "no 'shorten' param given\n") - return - } - rl.newRedirectPasteHandler(w, r, shorten) -} - func (rl *rushlink) newRedirectPasteHandler(w http.ResponseWriter, r *http.Request, rawurl string) { userURL, err := url.Parse(rawurl) if err != nil {