From 687ec1a15969a88e00f84b6f45f751c99cc91d92 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Wed, 6 Nov 2019 13:10:32 +0100 Subject: Add support for HTTP Upload headers Some services use Authorization header [0] to pass upload credential data. This avoids the token being exposed in server logs and is allowed by XEP-0363 since version 0.5.0. This change adds support for headers allowed in XEP-0363: Authorization, Expires and Cookie. [0]: https://xmpp.org/extensions/xep-0363.html#request --- libdino/src/service/file_manager.vala | 1 + 1 file changed, 1 insertion(+) (limited to 'libdino/src') diff --git a/libdino/src/service/file_manager.vala b/libdino/src/service/file_manager.vala index 841a6b53..a7d7b94a 100644 --- a/libdino/src/service/file_manager.vala +++ b/libdino/src/service/file_manager.vala @@ -358,6 +358,7 @@ public class FileSendData { } public class HttpFileSendData : FileSendData { public string url_down { get; set; } public string url_up { get; set; } + public HashMap headers { get; set; } public bool encrypt_message { get; set; default=true; } } -- cgit v1.2.3-70-g09d2