Skip to content

Commit

Permalink
Fixed failing calls to Lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Fish committed Jul 7, 2018
1 parent d2f0291 commit 13f4376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func (c *Client) Lookup(phoneNumber string, params *LookupParams) (*Lookup, erro
path := LookupPath + "/" + phoneNumber + "?" + urlParams.Encode()

lookup := &Lookup{}
if err := c.Request(lookup, http.MethodPost, path, nil); err != nil {
if err := c.Request(lookup, http.MethodGet, path, nil); err != nil {
if err == ErrResponse {
return lookup, err
}
Expand Down

0 comments on commit 13f4376

Please sign in to comment.