From 42f610d4b746ef068e6515e4688387ab13d799b2 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 5 Jun 2016 09:27:42 +0200 Subject: POST constant --- signer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signer.go b/signer.go index f9f0b7d..3eb25fc 100644 --- a/signer.go +++ b/signer.go @@ -75,7 +75,7 @@ func (s Signer) Nonce() (string, error) { // RoundTrip extracts nonces from HTTP response func (s Signer) RoundTrip(req *http.Request) (*http.Response, error) { - if req.Method == "POST" { + if req.Method == http.MethodPost { body, err := ioutil.ReadAll(req.Body) if err != nil { return nil, err -- cgit v1.2.3