libpurple/protocols/yahoo/yahoo_filexfer.c

changeset 30751
f4dda55ea733
parent 30706
612b36b49058
child 31680
d3902c687705
--- 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)

mercurial