sdk: allow redirects in resty client
@@ -112,6 +112,7 @@ func (c *APIClient) prepareClient() *resty.Client {
rClient := resty.New()
+ rClient.SetRedirectPolicy(resty.FlexibleRedirectPolicy(2))
rClient.SetDebug(c.config.Debug)
if c.config.Transport != nil {
rClient.SetTransport(c.config.Transport)
