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-17 09:26:03 +0300
committerEion Robb <eion@robbmob.com>2015-01-17 09:26:03 +0300
commit4155a52f3fd64f9c4761908b15c1f2a152597de9 (patch)
tree0b1265c2f9b866f9f137cc0dc7875a1b45671048 /skypeweb/skypeweb_connection.c
parent14389280ba6477152d1425ed1dd8152777bebc82 (diff)
Fix for online status not being set
Diffstat (limited to 'skypeweb/skypeweb_connection.c')
-rw-r--r--skypeweb/skypeweb_connection.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/skypeweb/skypeweb_connection.c b/skypeweb/skypeweb_connection.c
index b26e455..9bb0924 100644
--- a/skypeweb/skypeweb_connection.c
+++ b/skypeweb/skypeweb_connection.c
@@ -1,5 +1,4 @@
-
#include "skypeweb_connection.h"
#if !PURPLE_VERSION_CHECK(3, 0, 0)
@@ -557,8 +556,7 @@ skypeweb_post_or_get(SkypeWebAccount *sa, SkypeWebMethod method,
g_string_append_printf(request, "Connection: %s\r\n",
(keepalive ? "Keep-Alive" : "close"));
//g_string_append_printf(request, "User-Agent: %s\r\n", user_agent);
- if (method & SKYPEWEB_METHOD_POST) {
-
+ if (method & (SKYPEWEB_METHOD_POST | SKYPEWEB_METHOD_PUT)) {
if (postdata && (postdata[0] == '[' || postdata[0] == '{')) {
g_string_append(request, "Content-Type: application/json\r\n"); // hax
} else {