From 94fb6ae8f6b858e5cf7a64e81d5ddcffbd14e820 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 14 Feb 2024 00:47:17 -0500 Subject: [PATCH] aesgcm from raw body --- .../eu/siacs/conversations/http/HttpDownloadConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index b2b0ae1f3ee78345fda934d3239d213c2f6e4264..3b2e2089822bb776400ff0e1a42bc2b86bccae06 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -88,7 +88,7 @@ public class HttpDownloadConnection implements Transferable { } else if (message.isOOb() && fileParams.url != null) { mUrl = AesGcmURL.of(fileParams.url); } else { - mUrl = AesGcmURL.of(message.getBody().split("\n")[0]); + mUrl = AesGcmURL.of(message.getRawBody().split("\n")[0]); } final AbstractConnectionManager.Extension extension = AbstractConnectionManager.Extension.of(mUrl.encodedPath()); if (VALID_CRYPTO_EXTENSIONS.contains(extension.main)) { @@ -113,7 +113,7 @@ public class HttpDownloadConnection implements Transferable { } else { knownFileSize = message.getFileParams().size; } - Log.d(Config.LOGTAG,"knownFileSize: "+knownFileSize+", body="+message.getBody()); + Log.d(Config.LOGTAG,"knownFileSize: "+knownFileSize+", body="+message.getRawBody()); if (knownFileSize != null && interactive) { if (message.getEncryption() == Message.ENCRYPTION_AXOLOTL && this.file.getKey() != null) {