Author: poeml Date: Sun Sep 19 03:30:44 2010 New Revision: 8143 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8143&view=rev Log: mod_mirrorbrain - For mirror lists with MirrorBrainMirrorlistHeader configured, no content type was set, resulting in the document being delivered as text/plain. This supplements issue #63. - UTF-8 is now used instead of ISO-8859-1, which probably makes more sense. Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8143&r1=8142&r2=8143&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Sun Sep 19 03:30:44 2010 _at_@ -1249,7 +1249,7 @@ if (clientip) { debugLog(r, cfg, "obsolete clientip address parameter: '%s'", clientip); - ap_set_content_type(r, "text/html; charset=ISO-8859-1"); + ap_set_content_type(r, "text/html; charset=UTF-8"); ap_rputs(DOCTYPE_XHTML_1_0T "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" "<head>\n" _at_@ -2540,6 +2540,8 @@ setenv_give(r, "mirrorlist"); debugLog(r, cfg, "Sending mirrorlist"); + ap_set_content_type(r, "text/html; charset=UTF-8"); + if (scfg->mirrorlist_header) { /* send the configured custom header */ apr_file_t *fh; _at_@ -2561,7 +2563,6 @@ } } else { /* standard header */ - ap_set_content_type(r, "text/html; charset=ISO-8859-1"); ap_rputs(DOCTYPE_XHTML_1_0T "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" "<head>\n" _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Sun Sep 19 2010 - 01:30:53 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT