Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2015-01-18 22:58:37 +0300
committerEion Robb <eion@robbmob.com>2015-01-18 22:58:37 +0300
commit2027e2a995329bfeab367748e2bb2671d0e7c9fc (patch)
treecf83f05b1ee23875183fab407a82858d2fbce5dc /skypeweb/skypeweb_connection.c
parent4155a52f3fd64f9c4761908b15c1f2a152597de9 (diff)
SkypeWeb : Final fix for not being able to set presence/status
Diffstat (limited to 'skypeweb/skypeweb_connection.c')
-rw-r--r--skypeweb/skypeweb_connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/skypeweb/skypeweb_connection.c b/skypeweb/skypeweb_connection.c
index 9bb0924..6119b29 100644
--- a/skypeweb/skypeweb_connection.c
+++ b/skypeweb/skypeweb_connection.c
@@ -543,7 +543,7 @@ skypeweb_post_or_get(SkypeWebAccount *sa, SkypeWebMethod method,
cookies = skypeweb_cookies_to_string(sa);
//user_agent = purple_account_get_string(sa->account, "user-agent", "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36");
- if (method & SKYPEWEB_METHOD_POST && !postdata)
+ if ((method & (SKYPEWEB_METHOD_POST | SKYPEWEB_METHOD_PUT)) && !postdata)
postdata = "";
/* Build the request */
@@ -606,13 +606,13 @@ skypeweb_post_or_get(SkypeWebAccount *sa, SkypeWebMethod method,
purple_debug_info("skypeweb", "getting url %s\n", url);
g_string_append_printf(request, "\r\n");
- if (method & SKYPEWEB_METHOD_POST)
+ if (method & (SKYPEWEB_METHOD_POST | SKYPEWEB_METHOD_PUT))
g_string_append_printf(request, "%s", postdata);
/* If it needs to go over a SSL connection, we probably shouldn't print
* it in the debug log. Without this condition a user's password is
* printed in the debug log */
- if (method == SKYPEWEB_METHOD_POST)
+ if (method == SKYPEWEB_METHOD_POST || method == SKYPEWEB_METHOD_PUT)
purple_debug_info("skypeweb", "sending request data:\n%s\n", postdata);
purple_debug_misc("skypeweb", "sending headers:\n%s\n", request->str);