[libsocialweb] vimeo: Disable cookies on REST proxy.
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] vimeo: Disable cookies on REST proxy.
- Date: Thu, 30 Jun 2011 15:55:17 +0000 (UTC)
commit 1c7e12265d3926cf908c2f4d4e5fed624f28b2b5
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]