Skip to content

Commit

Permalink
Merge pull request #38 from Oliver-Fish/master
Browse files Browse the repository at this point in the history
Fixed failing calls to Lookup
  • Loading branch information
epels committed Jul 9, 2018
2 parents 1ba4711 + 13f4376 commit 722b6e0
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 722b6e0

Please sign in to comment.