aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2019-11-06 13:10:32 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2019-11-19 21:24:28 +0100
commit687ec1a15969a88e00f84b6f45f751c99cc91d92 (patch)
treef48e2fca3be2723abb89e97000ece96e04a565b4 /libdino/src/service
parente6918b35b382c3365b220582a32c97ec25037cc8 (diff)
downloaddino-687ec1a15969a88e00f84b6f45f751c99cc91d92.tar.gz
dino-687ec1a15969a88e00f84b6f45f751c99cc91d92.zip
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
Diffstat (limited to 'libdino/src/service')
-rw-r--r--libdino/src/service/file_manager.vala1
1 files changed, 1 insertions, 0 deletions
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<string, string> headers { get; set; }
public bool encrypt_message { get; set; default=true; }
}