From 7ce82d0d30c9159b2c34bb4ce26c08b9e7da8ec6 Mon Sep 17 00:00:00 2001 From: Alexey Michurin Date: Fri, 5 Oct 2018 23:21:25 +0300 Subject: [PATCH] Cosmetics --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{} }