comparison libgaim/protocols/msn/httpconn.c @ 14979:c157efddc62a

[gaim-migrate @ 17758] Don't lose the account proxy settings just because they are hidden and not in use. Also, make the MSN HTTP method use the same proxy setup code as the core - this should improve env. var proxy handling. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 16 Nov 2006 04:58:40 +0000
parents 118fd0dc5b6e
children
comparison
equal deleted inserted replaced
14978:f719225f988e 14979:c157efddc62a
473 const char *username, *password; 473 const char *username, *password;
474 char *auth = NULL; 474 char *auth = NULL;
475 475
476 account = httpconn->session->account; 476 account = httpconn->session->account;
477 477
478 if (gaim_account_get_proxy_info(account) == NULL) 478 gpi = gaim_proxy_get_setup(account);
479 gpi = gaim_global_proxy_get_info();
480 else
481 gpi = gaim_account_get_proxy_info(account);
482 479
483 if (gpi == NULL || !(gaim_proxy_info_get_type(gpi) == GAIM_PROXY_HTTP || 480 if (gpi == NULL || !(gaim_proxy_info_get_type(gpi) == GAIM_PROXY_HTTP ||
484 gaim_proxy_info_get_type(gpi) == GAIM_PROXY_USE_ENVVAR)) 481 gaim_proxy_info_get_type(gpi) == GAIM_PROXY_USE_ENVVAR))
485 return NULL; 482 return NULL;
486 483