Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
23985:fd646e79cccf | 23986:18a1f0fe5f40 |
---|---|
29 #include "prpl.h" | 29 #include "prpl.h" |
30 | 30 |
31 #include "yahoo.h" | 31 #include "yahoo.h" |
32 | 32 |
33 #include <string.h> | 33 #include <string.h> |
34 | |
35 gboolean | |
36 yahoo_account_use_http_proxy(PurpleConnection *conn) | |
37 { | |
38 PurpleProxyInfo *ppi = purple_proxy_get_setup(conn->account); | |
39 return (ppi->type == PURPLE_PROXY_HTTP || ppi->type == PURPLE_PROXY_USE_ENVVAR); | |
40 } | |
41 | |
34 /* | 42 /* |
35 * Returns cookies formatted as a null terminated string for the given connection. | 43 * Returns cookies formatted as a null terminated string for the given connection. |
36 * Must g_free return value. | 44 * Must g_free return value. |
37 * | 45 * |
38 * TODO:will work, but must test for strict correctness | 46 * TODO:will work, but must test for strict correctness |