httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r307276 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c
Date Sat, 08 Oct 2005 09:18:09 GMT
Author: pquerna
Date: Sat Oct  8 02:18:07 2005
New Revision: 307276

URL: http://svn.apache.org/viewcvs?rev=307276&view=rev
Log:
Add feed autodiscovery tags.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c?rev=307276&r1=307275&r2=307276&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c Sat Oct  8 02:18:07 2005
@@ -174,6 +174,12 @@
     ap_rputs("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"
/>\n", r);
     ap_rputs("  <title>Mailing list archives</title>\n", r);
 
+    ap_rprintf(r, "<link rel=\"alternate\" title=\"%s@%s Archives\" "
+                  "type=\"application/atom+xml\" href=\"%s?format=atom\" />",
+                  ESCAPE_OR_BLANK(r->pool, mli->list),
+                  ESCAPE_OR_BLANK(r->pool, mli->domain),
+                  ap_construct_url(r->pool, r->uri, r));
+
     if (conf->style_path) {
         ap_rprintf(r, "   <link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" />\n",
 		   conf->style_path);



Mime
View raw message