summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call.c
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-02-10 15:56:29 +0000
committerRoss Burton <ross@linux.intel.com>2009-02-10 15:56:29 +0000
commit678fd9b532f220182661f8d023ce96e12b877fbe (patch)
tree6594a41dc2b140016b62da2c908de70e25d65684 /rest/rest-proxy-call.c
parent031a8e52bab3f657d064545962800a5fbf14e624 (diff)
Use rest_proxy_get_user_agent instead of property access
Diffstat (limited to 'rest/rest-proxy-call.c')
-rw-r--r--rest/rest-proxy-call.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 642cf52..7d77cee 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -592,8 +592,8 @@ rest_proxy_call_async (RestProxyCall *call,
{
RestProxyCallPrivate *priv;
RestProxyCallClass *call_class;
- const gchar *bound_url;
- gchar *url = NULL, *user_agent = NULL;
+ const gchar *bound_url, *user_agent;
+ gchar *url = NULL;
SoupMessage *message;
RestProxyCallAsyncClosure *closure;
GError *error = NULL;
@@ -648,7 +648,7 @@ rest_proxy_call_async (RestProxyCall *call,
priv->params);
/* Set the user agent, if one was set in the proxy */
- g_object_get (priv->proxy, "user-agent", &user_agent, NULL);
+ user_agent = rest_proxy_get_user_agent (priv->proxy);
if (user_agent) {
soup_message_headers_append (message->request_headers, "User-Agent", user_agent);
}