diff options
author | fiaxh <git@lightrise.org> | 2018-11-27 18:28:28 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2018-11-27 18:28:28 +0100 |
commit | 7c1d580e174ff31a55677e976d87284868bd99c6 (patch) | |
tree | 986a66282848c06390ce1e9f0e9494965aa6a1d3 /plugins/omemo/src/file_sender.vala | |
parent | 141db9e40a3a81cfa3ad3587dc47f69c541d0fde (diff) | |
download | dino-7c1d580e174ff31a55677e976d87284868bd99c6.tar.gz dino-7c1d580e174ff31a55677e976d87284868bd99c6.zip |
Fix aesgcm http file up/download bugs
Diffstat (limited to 'plugins/omemo/src/file_sender.vala')
-rw-r--r-- | plugins/omemo/src/file_sender.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/omemo/src/file_sender.vala b/plugins/omemo/src/file_sender.vala index a760bc7b..b63d3dc5 100644 --- a/plugins/omemo/src/file_sender.vala +++ b/plugins/omemo/src/file_sender.vala @@ -46,7 +46,7 @@ public class AesGcmFileSender : StreamInteractionModule, FileSender, Object { foreach (uint8 byte in iv) iv_and_key += byte.to_string("%02x"); foreach (uint8 byte in key) iv_and_key += byte.to_string("%02x"); - stream_interactor.module_manager.get_module(file_transfer.account, Xmpp.Xep.HttpFileUpload.Module.IDENTITY).request_slot(stream, file_transfer.server_file_name, (int) data.length, file_transfer.mime_type, + stream_interactor.module_manager.get_module(file_transfer.account, Xmpp.Xep.HttpFileUpload.Module.IDENTITY).request_slot(stream, file_transfer.server_file_name, (int) ciphertext.length, file_transfer.mime_type, (stream, url_down, url_up) => { Soup.Message message = new Soup.Message("PUT", url_up); message.set_request(file_transfer.mime_type, Soup.MemoryUse.COPY, ciphertext); @@ -69,7 +69,7 @@ public class AesGcmFileSender : StreamInteractionModule, FileSender, Object { stream_interactor.get_module(ContentItemStore.IDENTITY).set_item_hide(content_item, true); } } else { - warning("HTTP status code " + message.status_code.to_string()); + warning("HTTP upload status code " + message.status_code.to_string()); file_transfer.state = FileTransfer.State.FAILED; } } catch (Error e) { |