mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Use stdlib constants for HTTP methods instead of strings
This commit is contained in:
parent
ec18abc97f
commit
8304666261
3 changed files with 109 additions and 107 deletions
|
@ -83,7 +83,7 @@ func (m *middleware) handleAppSession(next http.Handler) http.Handler {
|
|||
logger.Debug("[UI:AppSession] %s", session)
|
||||
}
|
||||
|
||||
if r.Method == "POST" {
|
||||
if r.Method == http.MethodPost {
|
||||
formValue := r.FormValue("csrf")
|
||||
headerValue := r.Header.Get("X-Csrf-Token")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue