[libsocialweb/libsocialweb-0.25] vimeo: Disable cookies on REST proxy.



commit 7f338639c92422ec2af2da29e0da69bdddb73d6e
Author: Eitan Isaacson <eitan isaacson collabora co uk>
Date:   Wed Mar 30 11:58:07 2011 -0700

    vimeo: Disable cookies on REST proxy.
    
    This is because of a Vimeo bug that gives us 500 errors if we relay
    cookies we get.

 services/vimeo/vimeo.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/services/vimeo/vimeo.c b/services/vimeo/vimeo.c
index 6a51485..2b7fee6 100644
--- a/services/vimeo/vimeo.c
+++ b/services/vimeo/vimeo.c
@@ -791,8 +791,14 @@ sw_service_vimeo_initable (GInitable     *initable,
 
   priv->inited = TRUE;
 
-  priv->proxy = oauth_proxy_new (api_key, api_secret, "http://vimeo.com/";, FALSE);
-  priv->simple_proxy = rest_proxy_new ("http://vimeo.com/api/v2/%s/";, TRUE);
+  priv->proxy = g_object_new (OAUTH_TYPE_PROXY,
+                              "consumer-key", api_key,
+                              "consumer-secret", api_secret,
+                              "url-format", "http://vimeo.com/";,
+                              "disable-cookies", TRUE,
+                              NULL);
+  priv->upload_proxy = oauth_proxy_new (api_key, api_secret, "%s", TRUE);
+  priv->simple_proxy = rest_proxy_new ("http://%s/api/v2/%s/";, TRUE);
 
   priv->album_placeholders =
     g_hash_table_new_full (g_str_hash, g_str_equal, g_free,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]