diff options
author | Eion Robb <eion@robbmob.com> | 2015-01-18 22:58:37 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2015-01-18 22:58:37 +0300 |
commit | 2027e2a995329bfeab367748e2bb2671d0e7c9fc (patch) | |
tree | cf83f05b1ee23875183fab407a82858d2fbce5dc | |
parent | 4155a52f3fd64f9c4761908b15c1f2a152597de9 (diff) |
SkypeWeb : Final fix for not being able to set presence/status
-rw-r--r-- | skypeweb/skypeweb_connection.c | 6 |
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); |