fix(android): federation APK 4xx errors (#1279)

This commit is contained in:
KoalaSat 2024-05-08 23:40:59 +02:00 committed by GitHub
parent 8140899150
commit 441eddb74c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,11 +83,7 @@ public class TorModule extends ReactContextBaseJavaModule {
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 +"}");
}
});
}