summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rest-extras/lastfm-proxy-call.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rest-extras/lastfm-proxy-call.c b/rest-extras/lastfm-proxy-call.c
index 5e04038..f4bba60 100644
--- a/rest-extras/lastfm-proxy-call.c
+++ b/rest-extras/lastfm-proxy-call.c
@@ -44,14 +44,15 @@ _prepare (RestProxyCall *call, GError **error)
priv = LASTFM_PROXY_GET_PRIVATE (proxy);
call_priv = call->priv;
- /* First reset the URL because Lastfm puts the function in the parameters */
- call_priv->url = g_strdup (_rest_proxy_get_bound_url (REST_PROXY (proxy)));
rest_proxy_call_add_params (call,
"method", call_priv->function,
"api_key", priv->api_key,
NULL);
+ /* Reset function because Lastfm puts the function in the parameters */
+ rest_proxy_call_set_function (call, NULL);
+
if (priv->session_key)
rest_proxy_call_add_param (call, "sk", priv->session_key);