about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-01 08:55:25 +0000
committerEric Wong <e@80x24.org>2015-09-01 08:56:06 +0000
commit97bef984363d1279a6ac130d35f063a834e9c241 (patch)
tree6a91e79c0129969ed1c25584b803008d5ccb84e9 /lib/PublicInbox/WWW.pm
parent41d5b5f42ec41cd3cefb964eff2da7df88677dde (diff)
downloadpublic-inbox-97bef984363d1279a6ac130d35f063a834e9c241.tar.gz
The MIME type entry for Atom feed relies on "atom",
so allow properly-configured static file servers to serve
it with the correct Content-Type header.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 278d786d..a9cb6d71 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -34,7 +34,7 @@ sub run {
                 invalid_list(\%ctx, $1) || redirect_list_index($cgi);
         } elsif ($path_info =~ m!$LISTNAME_RE(?:/|/index\.html)?\z!o) {
                 invalid_list(\%ctx, $1) || get_index(\%ctx);
-        } elsif ($path_info =~ m!$LISTNAME_RE/atom\.xml\z!o) {
+        } elsif ($path_info =~ m!$LISTNAME_RE/(?:atom\.xml|new\.atom)\z!o) {
                 invalid_list(\%ctx, $1) || get_atom(\%ctx);
 
         # single-message pages
@@ -128,7 +128,7 @@ sub invalid_list_mid {
         $ret;
 }
 
-# /$LISTNAME/atom.xml                       -> Atom feed, includes replies
+# /$LISTNAME/new.atom                     -> Atom feed, includes replies
 sub get_atom {
         my ($ctx) = @_;
         require PublicInbox::Feed;