summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <chingpang@gmail.com>2010-09-01 09:45:20 +0800
committerRoss Burton <ross@linux.intel.com>2010-09-01 10:50:09 +0100
commitac11a9140515a1145d89055dd8d9a0837fc21700 (patch)
treef418609b0e9383d79924d36f385389011c3d7b43
parent13e64eb297b2224893cbb119f37158de9a27c7f0 (diff)
Add cookie support to rest-proxy
Signed-off-by: Gary Ching-Pang Lin <chingpang@gmail.com>
-rw-r--r--rest/rest-proxy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index fad6393..7c9c1db 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -231,6 +231,11 @@ rest_proxy_init (RestProxy *self)
soup_session_add_feature (priv->session_sync, logger);
g_object_unref (logger);
}
+
+ SoupSessionFeature *cookie_jar = soup_cookie_jar_new ();
+ soup_session_add_feature (priv->session, cookie_jar);
+ soup_session_add_feature (priv->session_sync, cookie_jar);
+ g_object_unref (cookie_jar);
}
/**