Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/yahoo_picture.c @ 25907:e4d738813cd8
Backport the parts of b859960a4a19f57f20db0536c1815a6d79e08e36 that apply to
this branch, and also apply 162a734100aafd62b7338baa81b04510c6b66921.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Fri, 19 Jun 2009 01:18:18 +0000 |
parents | 5ec72dbdd28e |
children | 01f1929d0936 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_picture.c Fri Jun 19 01:07:51 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo_picture.c Fri Jun 19 01:18:18 2009 +0000 @@ -134,6 +134,7 @@ data->gc = gc; data->who = g_strdup(who); data->checksum = checksum; + /* TODO: Does this need to be MSIE 5.0? */ url_data = purple_util_fetch_url(url, use_whole_url, "Mozilla/4.0 (compatible; MSIE 5.0)", FALSE, yahoo_fetch_picture_cb, data); @@ -499,7 +500,7 @@ port = purple_account_get_int(account, "xfer_port", YAHOO_XFER_PORT); tmp = g_strdup_printf("%s:%d", host, port); header = g_strdup_printf("POST %s%s/notifyft HTTP/1.1\r\n" - "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5)\r\n" + "User-Agent: " YAHOO_CLIENT_USERAGENT "\r\n" "Cookie: T=%s; Y=%s\r\n" "Host: %s\r\n" "Content-Length: %" G_GSIZE_FORMAT "\r\n"