[gnome-online-accounts] lastfm: Use GoaRestProxy
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] lastfm: Use GoaRestProxy
- Date: Fri, 4 Aug 2017 15:05:48 +0000 (UTC)
commit f6c3e093a0fe58fd26189d3f07a5a73d0070f772
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 4 16:29:07 2017 +0200
lastfm: Use GoaRestProxy
src/goabackend/goalastfmprovider.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goalastfmprovider.c b/src/goabackend/goalastfmprovider.c
index 532ef3c..2e3a9e7 100644
--- a/src/goabackend/goalastfmprovider.c
+++ b/src/goabackend/goalastfmprovider.c
@@ -28,6 +28,7 @@
#include "goaoauth2provider.h"
#include "goaoauth2provider-priv.h"
#include "goalastfmprovider.h"
+#include "goarestproxy.h"
#include "goautils.h"
struct _GoaLastfmProvider
@@ -190,7 +191,7 @@ lastfm_login_sync (GoaProvider *provider,
GOA_LASTFM_CLIENT_SECRET);
sig_md5 = g_compute_checksum_for_string (G_CHECKSUM_MD5, sig, -1);
- call = rest_proxy_new_call (rest_proxy_new (get_request_uri (provider), FALSE));
+ call = rest_proxy_new_call (goa_rest_proxy_new (get_request_uri (provider), FALSE));
rest_proxy_call_set_method (call, "POST");
rest_proxy_call_add_header (call, "Content-Type", "application/x-www-form-urlencoded");
@@ -594,7 +595,7 @@ lastfm_login (GoaProvider *provider,
GOA_LASTFM_CLIENT_SECRET);
sig_md5 = g_compute_checksum_for_string (G_CHECKSUM_MD5, sig, -1);
- call = rest_proxy_new_call (rest_proxy_new (get_request_uri (provider), FALSE));
+ call = rest_proxy_new_call (goa_rest_proxy_new (get_request_uri (provider), FALSE));
rest_proxy_call_set_method (call, "POST");
rest_proxy_call_add_header (call, "Content-Type", "application/x-www-form-urlencoded");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]