1
mirror of https://github.com/m2049r/xmrwallet synced 2025-05-14 10:51:37 +02:00

increase sanity check size limit ()

This commit is contained in:
m2049r 2019-04-23 20:52:43 +02:00 committed by GitHub
parent 27f266b6f7
commit 1f976872fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(