mirror of
https://github.com/Reckless-Satoshi/robosats.git
synced 2024-09-11 11:55:26 +03:00
fix(android): federation APK 4xx errors (#1279)
This commit is contained in:
parent
8140899150
commit
441eddb74c
@ -83,11 +83,7 @@ public class TorModule extends ReactContextBaseJavaModule {
|
|||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (response.code() != 200 && response.code() != 201) {
|
promise.resolve("{\"json\":" + body + ", \"headers\": " + headersJson +"}");
|
||||||
Log.d("RobosatsError", "Request error code: " + response.code());
|
|
||||||
} else if (response.isSuccessful()) {
|
|
||||||
promise.resolve("{\"json\":" + body + ", \"headers\": " + headersJson +"}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user