login if we do not have access token

This commit is contained in:
Ekaterina Tuzova
2016-11-28 15:51:04 +03:00
parent 32f1bfda85
commit 7787a2608e
@@ -103,6 +103,9 @@ public class EduStepicAuthorizedClient {
headers.add(new BasicHeader("Content-type", EduStepicNames.CONTENT_TYPE_APP_JSON));
return getBuilder().setDefaultHeaders(headers).build();
}
else {
login(stepicUser);
}
return null;
}