Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/yahoo_filexfer.c @ 30974: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 | 351d07aefb09 |
children | c5ba7dd399fa b671728e6ee9 |
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)