aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-07-16 00:40:38 +0800
committerMilan Crha <mcrha@redhat.com>2013-07-16 00:40:38 +0800
commitdcf302c2ba303a26f6f6a356f2f71f22f81eeb02 (patch)
tree12b328d3f649d8751c0df6236fdeb5edc70f9c87 /calendar/gui
parent6565a88ded370eb48a25377f46b5fb2a7c9307f5 (diff)
downloadgsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.tar
gsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.tar.gz
gsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.tar.bz2
gsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.tar.lz
gsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.tar.xz
gsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.tar.zst
gsoc2013-evolution-dcf302c2ba303a26f6f6a356f2f71f22f81eeb02.zip
Bug #703389 - Proxy ignored for images
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/itip-utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index beb62b9189..440ae8ff46 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -2171,6 +2171,7 @@ itip_publish_comp (ECalClient *cal_client,
SoupMessage *msg;
SoupURI *real_uri;
gchar *ical_string = NULL;
+ EProxy *proxy;
toplevel = e_cal_util_new_top_level ();
icalcomponent_set_method (toplevel, ICAL_METHOD_PUBLISH);
@@ -2187,6 +2188,19 @@ itip_publish_comp (ECalClient *cal_client,
session = soup_session_async_new ();
g_object_set (session, SOUP_SESSION_TIMEOUT, 90, NULL);
+ proxy = e_proxy_new ();
+ e_proxy_setup_proxy (proxy);
+
+ if (e_proxy_require_proxy_for_uri (proxy, uri)) {
+ SoupURI *proxy_uri;
+
+ proxy_uri = e_proxy_peek_uri_for (proxy, uri);
+
+ g_object_set (session, SOUP_SESSION_PROXY_URI, proxy_uri, NULL);
+ }
+
+ g_clear_object (&proxy);
+
real_uri = soup_uri_new (uri);
if (!real_uri || !real_uri->host) {
g_warning (G_STRLOC ": Invalid URL: %s", uri);