aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-08-13 12:17:35 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-08-13 12:17:35 +0800
commit5a505ce86827f305e2eda54830dd54e23381930e (patch)
tree2d5dc237ccc12de7e3ef5b9c3a7f014390023f62 /mail/em-format-html.c
parente4d3e468d8fd4a28127981aeabca62551e233a1a (diff)
downloadgsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.tar
gsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.tar.gz
gsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.tar.bz2
gsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.tar.lz
gsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.tar.xz
gsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.tar.zst
gsoc2013-evolution-5a505ce86827f305e2eda54830dd54e23381930e.zip
Patch from Moritz Mertinkat <moritz@mertinkat.net> (Added meaningful user agent for HTTP requests used to load remote images).
svn path=/trunk/; revision=35974
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index bb2d176b6e..99c670e5ae 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -497,6 +497,7 @@ static void emfh_gethttp(struct _EMFormatHTMLJob *job, int cancelled)
}
instream = camel_http_stream_new(CAMEL_HTTP_METHOD_GET, ((EMFormat *)job->format)->session, url);
+ camel_http_stream_set_user_agent((CamelHttpStream *)instream, "CamelHttpStream/1.0 Evolution/" VERSION);
proxy = em_utils_get_proxy_uri();
camel_http_stream_set_proxy((CamelHttpStream *)instream, proxy);
g_free(proxy);