From 5a505ce86827f305e2eda54830dd54e23381930e Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Wed, 13 Aug 2008 04:17:35 +0000 Subject: Patch from Moritz Mertinkat (Added meaningful user agent for HTTP requests used to load remote images). svn path=/trunk/; revision=35974 --- mail/ChangeLog | 6 ++++++ mail/em-format-html.c | 1 + 2 files changed, 7 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 917ee5ddb4..df3c3b1f60 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2008-08-13 Moritz Mertinkat + + * em-format-html.c: Added meaningful user agent for HTTP requests + used to load remote images. The original part (CamelHttpStream/1.0) + has been kept for backward compatibility. + 2008-08-12 Milan Crha ** Fix for bug #519292 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); -- cgit