Author: poeml Date: Wed Mar 10 14:57:50 2010 New Revision: 7975 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7975&view=rev Log: mod_mirrorbrain: - correct the XML namespace declaration, which got mixed up between metalink and met4. 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=7975&r1=7974&r2=7975&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Wed Mar 10 14:57:50 2010 @@ -1647,7 +1647,7 @@ case META4: ap_set_content_type(r, "application/metalink4+xml; charset=UTF-8"); ap_rputs( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" - "<metalink version=\"3.0\" xmlns=\"http://www.metalinker.org/\"\n", r); + "<metalink xmlns=\"urn:ietf:params:xml:ns:metalink\">\n", r); /* put the current time into rfc 3339 date format */ time_str = apr_palloc(r->pool, RFC3339_DATE_LEN); @@ -1683,7 +1683,7 @@ case METALINK: ap_set_content_type(r, "application/metalink+xml; charset=UTF-8"); ap_rputs( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" - "<metalink xmlns=\"urn:ietf:params:xml:ns:metalink\">\n", r); + "<metalink version=\"3.0\" xmlns=\"http://www.metalinker.org/\"\n", r); /* the current time in rfc 822 format */ time_str = apr_palloc(r->pool, APR_RFC822_DATE_LEN); _______________________________________________ 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 Wed Mar 10 2010 - 13:57:52 GMT
This archive was generated by hypermail 2.2.0 : Wed Mar 10 2010 - 14:17:11 GMT