mirror of
https://github.com/m2049r/xmrwallet
synced 2025-05-14 10:51:37 +02:00
increase sanity check size limit (#576)
This commit is contained in:
parent
27f266b6f7
commit
1f976872fc
@ -228,7 +228,7 @@ public class NodeInfo extends Node {
|
|||||||
responseCode = response.code();
|
responseCode = response.code();
|
||||||
if (response.isSuccessful()) {
|
if (response.isSuccessful()) {
|
||||||
ResponseBody respBody = response.body(); // closed through Response object
|
ResponseBody respBody = response.body(); // closed through Response object
|
||||||
if ((respBody != null) && (respBody.contentLength() < 1000)) { // sanity check
|
if ((respBody != null) && (respBody.contentLength() < 2000)) { // sanity check
|
||||||
final JSONObject json = new JSONObject(
|
final JSONObject json = new JSONObject(
|
||||||
respBody.string());
|
respBody.string());
|
||||||
final JSONObject header = json.getJSONObject(
|
final JSONObject header = json.getJSONObject(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user