Remove MethodPost from two URI handlers in payment that only accept GET
This commit is contained in:
parent
2c36e45663
commit
cc26eddc7c
|
@ -47,7 +47,7 @@ func handleSuccessfulPayment(w http.ResponseWriter, r *http.Request, user *auth.
|
|||
page := newSuccessfulPaymentPage()
|
||||
page.MustRender(w, r, user, company, conn)
|
||||
default:
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPost)
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
||||
}
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
|
@ -80,7 +80,7 @@ func handleFailedPayment(w http.ResponseWriter, r *http.Request, user *auth.User
|
|||
page := newFailedPaymentPage()
|
||||
page.MustRender(w, r, user, company, conn)
|
||||
default:
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPost)
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
||||
}
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
|
|
Loading…
Reference in New Issue