diff options
author | xomachine <xomachiner@gmail.com> | 2018-07-06 19:54:20 +0300 |
---|---|---|
committer | xomachine <xomachiner@gmail.com> | 2018-07-06 19:54:20 +0300 |
commit | 2f4aa59b77b4ea6ce4c6821ac365c007899740c4 (patch) | |
tree | cc61bf07435520c68f976533f7bd3e556ff2eb45 | |
parent | d192665b8ff362c956cf7ab801730c9f736559c4 (diff) |
Added skype version info to the request header at the file transfer initialization
-rw-r--r-- | skypeweb/skypeweb_contacts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/skypeweb/skypeweb_contacts.c b/skypeweb/skypeweb_contacts.c index 007e272..c9d7f83 100644 --- a/skypeweb/skypeweb_contacts.c +++ b/skypeweb/skypeweb_contacts.c @@ -770,6 +770,7 @@ skypeweb_xfer_send_init(PurpleXfer *xfer) purple_http_request_set_keepalive_pool(request, sa->keepalive_pool);
purple_http_request_header_set_printf(request, "Authorization", "skype_token %s", sa->skype_token); //slightly different to normal!
purple_http_request_header_set(request, "Content-Type", "application/json");
+ purple_http_request_header_set(request, "X-Client-Version", SKYPEWEB_CLIENTINFO_VERSION);
purple_http_request_set_contents(request, post, -1);
purple_http_request(sa->pc, request, skypeweb_got_object_for_file, swft);
purple_http_request_unref(request);
|