diff --git a/CHANGELOG.md b/CHANGELOG.md index ece87ff..f6da776 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.4 (unreleased) + +- Implement synchronous request only for non-GET requests + ## 0.1.3 - Optimize wait time after 429 response diff --git a/client.go b/client.go index d05c7aa..ec8b4f8 100644 --- a/client.go +++ b/client.go @@ -246,7 +246,7 @@ func (client *Client) Do(req Req) (Res, error) { } } - if req.Synchronous { + if req.Synchronous && req.HttpReq.Method != "GET" && req.HttpReq.Method != "" { return client.WaitTask(&req, &res) }