Remove MethodPost from two URI handlers in payment that only accept GET

This commit is contained in:
jordi fita mas 2024-02-04 06:37:56 +01:00
parent 2c36e45663
commit cc26eddc7c
1 changed files with 2 additions and 2 deletions

View File

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