diff --git a/sdk/src/main/java/ly/count/android/sdk/ConnectionProcessor.java b/sdk/src/main/java/ly/count/android/sdk/ConnectionProcessor.java index 24e9fabbd..3718cab0f 100644 --- a/sdk/src/main/java/ly/count/android/sdk/ConnectionProcessor.java +++ b/sdk/src/main/java/ly/count/android/sdk/ConnectionProcessor.java @@ -96,6 +96,8 @@ private enum RequestResult { urlEndpoint = customEndpoint; } + // determine whether or not request has a binary image file, if it has request will be sent as POST request + boolean hasPicturePath = requestData.contains(ModuleUserProfile.PICTURE_PATH_KEY); boolean usingHttpPost = (requestData.contains("&crash=") || requestData.length() >= 2048 || requestInfoProvider_.isHttpPostForced()); long approximateDateSize = 0L; @@ -103,7 +105,7 @@ private enum RequestResult { if (usingHttpPost) { String checksum = UtilsNetworking.sha256Hash(requestData + requestInfoProvider_.getRequestSalt()); requestData += "&checksum256=" + checksum; - approximateDateSize += requestData.length(); + approximateDateSize += requestData.length(); // add request data to the estimated data size L.v("[Connection Processor] The following checksum was added:[" + checksum + "]"); } else { urlStr += "?" + requestData;