changeset 30541:fc961dfd4122

Fix file transfers. yahoo_get_cookies() doesn't seem to be working. As a fix construct cookie by printing individual cookies together.
author sulabh@pidgin.im
date Wed, 01 Sep 2010 20:29:32 +0000
parents 75460aee9279
children 8eb46a838ce0
files libpurple/protocols/yahoo/yahoo_filexfer.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c	Wed Sep 01 17:55:14 2010 +0000
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c	Wed Sep 01 20:29:32 2010 +0000
@@ -1253,7 +1253,14 @@
 	if (xd->txbuflen == 0)
 	{
 		gchar* cookies;
-		cookies = yahoo_get_cookies(gc);
+		YahooData *yd = gc->proto_data;
+
+		/* cookies = yahoo_get_cookies(gc);
+		 * This doesn't seem to be working. The function is returning NULL, which yahoo servers don't like
+		 * For now let us not use this function */
+
+		cookies = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t);
+
 		if(purple_xfer_get_type(xfer) == PURPLE_XFER_SEND && xd->status_15 == ACCEPTED)
 		{
 			if(xd->info_val_249 == 2)