Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo_profile.c @ 23986:18a1f0fe5f40
Do a better job of detecting if the yahoo account is connecting through a HTTP
Proxy in order to generate acceptable HTTP requests.
Hopefully fixes #6527
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 27 Aug 2008 02:52:50 +0000 |
parents | 0fd0c52364a2 |
children | 9fc3f5bf4455 16734635febf |
comparison
equal
deleted
inserted
replaced
23985:fd646e79cccf | 23986:18a1f0fe5f40 |
---|---|
931 info2_data->user_info = user_info; | 931 info2_data->user_info = user_info; |
932 | 932 |
933 /* Try to put the photo in there too, if there's one */ | 933 /* Try to put the photo in there too, if there's one */ |
934 if (photo_url_text) { | 934 if (photo_url_text) { |
935 PurpleUtilFetchUrlData *url_data; | 935 PurpleUtilFetchUrlData *url_data; |
936 gboolean use_whole_url = FALSE; | |
937 | |
938 /* use whole URL if using HTTP Proxy */ | 936 /* use whole URL if using HTTP Proxy */ |
939 if ((info_data->gc->account->proxy_info) && (info_data->gc->account->proxy_info->type == PURPLE_PROXY_HTTP)) | 937 gboolean use_whole_url = yahoo_account_use_http_proxy(info_data->gc); |
940 use_whole_url = TRUE; | |
941 | 938 |
942 /* User-uploaded photos use a different server that requires the Host | 939 /* User-uploaded photos use a different server that requires the Host |
943 * header, but Yahoo Japan will use the "chunked" content encoding if | 940 * header, but Yahoo Japan will use the "chunked" content encoding if |
944 * we specify HTTP 1.1. So we have to specify 1.0 & fix purple_util_fetch_url | 941 * we specify HTTP 1.1. So we have to specify 1.0 & fix purple_util_fetch_url |
945 */ | 942 */ |