increase sanity check size limit (#576)

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
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public class NodeInfo extends Node {
responseCode = response.code();
if (response.isSuccessful()) {
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(
respBody.string());
final JSONObject header = json.getJSONObject(