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>2016-06-20 12:33:00 +0300
committerEion Robb <eion@robbmob.com>2016-06-20 12:33:00 +0300
commit72f0b003252d0c827e9fa5dcb31005ef4a51b036 (patch)
tree7474f8d741fd9386491f45d139bfd1437e398649 /skypeweb/skypeweb_messages.c
parentc6c43cda9064fb593f9f65bf09c16eb676c03de9 (diff)
Functionerize the plain http request code to get it working (hackily) with libpurple 2.11.0 in preparation for the Big Changes coming soon
Diffstat (limited to 'skypeweb/skypeweb_messages.c')
-rw-r--r--skypeweb/skypeweb_messages.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/skypeweb/skypeweb_messages.c b/skypeweb/skypeweb_messages.c
index 667dd59..61266d8 100644
--- a/skypeweb/skypeweb_messages.c
+++ b/skypeweb/skypeweb_messages.c
@@ -1005,11 +1005,6 @@ skypeweb_got_registration_token(PurpleUtilFetchUrlData *url_data, gpointer user_
sa->url_datas = g_slist_remove(sa->url_datas, url_data);
if (url_text == NULL) {
- url_text = url_data->webdata;
- len = url_data->data_len;
- }
-
- if (url_text == NULL) {
if (purple_major_version == 2 && (
purple_minor_version < 10 ||
(purple_minor_version == 10 && purple_micro_version < 11))
@@ -1063,7 +1058,7 @@ skypeweb_get_registration_token(SkypeWebAccount *sa)
gchar *request;
gchar *curtime;
gchar *response;
- PurpleUtilFetchUrlData *requestdata;
+ gpointer requestdata;
g_free(sa->registration_token); sa->registration_token = NULL;
g_free(sa->endpoint); sa->endpoint = NULL;
@@ -1089,8 +1084,7 @@ skypeweb_get_registration_token(SkypeWebAccount *sa)
requestdata = skypeweb_fetch_url_request(sa, messages_url, TRUE, NULL, FALSE, request, TRUE, 524288, skypeweb_got_registration_token, sa);
- if (requestdata != NULL)
- requestdata->num_times_redirected = 10; /* Prevent following redirects */
+ skypeweb_url_prevent_follow_redirects(requestdata);
g_free(request);
g_free(curtime);