From 7ec801938df48fe545ef4b85106ce6dc3eaf197b Mon Sep 17 00:00:00 2001 From: micnncim Date: Mon, 14 Oct 2019 14:28:21 +0900 Subject: [PATCH] Fix query param in giphy client (#5) --- pkg/giphy/giphy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/giphy/giphy.go b/pkg/giphy/giphy.go index cbfd146..95ce0a5 100644 --- a/pkg/giphy/giphy.go +++ b/pkg/giphy/giphy.go @@ -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 {