mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Fix 'Unable to connect' auth errors
This commit is contained in:
@@ -61,7 +61,7 @@ public class AppEngineClient {
|
|||||||
|
|
||||||
public HttpResponse makeRequest(String urlPath, List<NameValuePair> params) throws Exception {
|
public HttpResponse makeRequest(String urlPath, List<NameValuePair> params) throws Exception {
|
||||||
HttpResponse res = makeRequestNoRetry(urlPath, params, false);
|
HttpResponse res = makeRequestNoRetry(urlPath, params, false);
|
||||||
if (res.getStatusLine().getStatusCode() == 500) {
|
if (res.getStatusLine().getStatusCode() == 500 || res.getStatusLine().getStatusCode() == 302) {
|
||||||
res = makeRequestNoRetry(urlPath, params, true);
|
res = makeRequestNoRetry(urlPath, params, true);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user