Skip to content

Commit

Permalink
fix(android): federation APK 4xx errors (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat authored May 8, 2024
1 parent 8140899 commit 441eddb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ public void onResponse(Call call, Response response) throws IOException {
throw new RuntimeException(e);
}
});
if (response.code() != 200 && response.code() != 201) {
Log.d("RobosatsError", "Request error code: " + response.code());
} else if (response.isSuccessful()) {
promise.resolve("{\"json\":" + body + ", \"headers\": " + headersJson +"}");
}
promise.resolve("{\"json\":" + body + ", \"headers\": " + headersJson +"}");
}
});
}
Expand Down

0 comments on commit 441eddb

Please sign in to comment.