Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Fix query param in giphy client (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
micnncim authored Oct 14, 2019
1 parent 81f96dc commit 7ec8019
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/giphy/giphy.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func (c *Client) Search(q string) ([]*Giphy, error) {
query := req.URL.Query()
query.Add("api_key", c.apiKey)
query.Add("q", q)
req.URL.RawQuery = query.Encode()

resp, err := c.httpClient.Do(req)
if err != nil {
Expand Down

0 comments on commit 7ec8019

Please sign in to comment.