Skip to content

Commit 722b6e0

Browse files
authored
Merge pull request #38 from Oliver-Fish/master
Fixed failing calls to Lookup
2 parents 1ba4711 + 13f4376 commit 722b6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ func (c *Client) Lookup(phoneNumber string, params *LookupParams) (*Lookup, erro
492492
path := LookupPath + "/" + phoneNumber + "?" + urlParams.Encode()
493493

494494
lookup := &Lookup{}
495-
if err := c.Request(lookup, http.MethodPost, path, nil); err != nil {
495+
if err := c.Request(lookup, http.MethodGet, path, nil); err != nil {
496496
if err == ErrResponse {
497497
return lookup, err
498498
}

0 commit comments

Comments
 (0)