diff --git a/handler.go b/handler.go index 57a37b8..a574819 100644 --- a/handler.go +++ b/handler.go @@ -65,7 +65,7 @@ func NewRequestOptions(r *http.Request) *RequestOptions { return reqOpt } - if r.Method != "POST" { + if r.Method != http.MethodPost { return &RequestOptions{} }