Mercurial > pidgin
diff libpurple/protocols/yahoo/util.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 | bf7ce9629402 |
children | 721e64d1ddfd 510f07e1f5c1 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c Wed Aug 27 02:43:25 2008 +0000 +++ b/libpurple/protocols/yahoo/util.c Wed Aug 27 02:52:50 2008 +0000 @@ -31,6 +31,14 @@ #include "yahoo.h" #include <string.h> + +gboolean +yahoo_account_use_http_proxy(PurpleConnection *conn) +{ + PurpleProxyInfo *ppi = purple_proxy_get_setup(conn->account); + return (ppi->type == PURPLE_PROXY_HTTP || ppi->type == PURPLE_PROXY_USE_ENVVAR); +} + /* * Returns cookies formatted as a null terminated string for the given connection. * Must g_free return value.