Merge pull request #1917 from gianm/math-is-hard

RemoteTaskActionClient: Fix statusCode check.
This commit is contained in:
Xavier Léauté 2015-11-05 11:25:41 -08:00
commit 7cbff731e3
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class RemoteTaskActionClient implements TaskActionClient
throw Throwables.propagate(e);
}
if (response.getStatus().getCode() / 200 == 1) {
if (response.getStatus().getCode() / 100 == 2) {
final Map<String, Object> responseDict = jsonMapper.readValue(
response.getContent(),
new TypeReference<Map<String, Object>>()