Avoid following redirects in API client
@@ -121,6 +121,7 @@ public class ApiClient {
DefaultClientConfig conf = new DefaultClientConfig();
conf.getSingletons().add(jsonProvider);
Client client = Client.create(conf);
+ client.setFollowRedirects(false);
if (debugging) {
client.addFilter(new LoggingFilter());
}
