use http.Method* strings in lastfm tests

This commit is contained in:
sentriz
2023-09-26 01:15:58 +01:00
parent 9026c9e2c0
commit d77b0ebf4c
2 changed files with 9 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ package lastfm
import (
"fmt"
"net/http"
"net/url"
"strconv"
"strings"
@@ -68,6 +69,6 @@ func (s *Scrobbler) Scrobble(user *db.User, track *db.Track, stamp time.Time, su
params.Add("api_sig", getParamSignature(params, secret))
_, err = s.client.makeRequest("POST", params)
_, err = s.client.makeRequest(http.MethodPost, params)
return err
}