about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-25 03:10:50 +0000
committerEric Wong <e@80x24.org>2016-02-25 04:03:02 +0000
commit8968889e3ebfa09dd2c80fe8b917b83ac13ff356 (patch)
treed7d27284f53eb7b0dc11ed5ee2c64ba1ec1ed738 /lib/PublicInbox/Feed.pm
parent62a77b55c9fadec1b4b1ba061e99f4a18d8a14bc (diff)
downloadpublic-inbox-8968889e3ebfa09dd2c80fe8b917b83ac13ff356.tar.gz
Relying on Plack::Handler::CGI is much easier for long-term
maintenance and development.

Nowadays, we even include our own httpd implementation to
facilitate easier deployment with PSGI/Plack.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index a0aa62af..a5828a8e 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -284,14 +284,7 @@ sub get_feedopts {
 
         my $url_base;
         if ($cgi) {
-                my $base;
-                if (ref($cgi) eq 'CGI') {
-                        $base = $cgi->url(-base);
-                } else { # Plack::Request
-                        $base = $cgi->base->as_string;
-                        $base =~ s!/\z!!;
-                }
-                $url_base = "$base/$listname";
+                $url_base = $cgi->base->as_string . $listname;
                 if (my $mid = $ctx->{mid}) { # per-thread feed:
                         $rv{atomurl} = "$url_base/$mid/t.atom";
                 } else {