diff options
author | Eric Wong <e@80x24.org> | 2014-04-28 20:04:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-28 20:09:11 +0000 |
commit | 408ace3fa76b5987245ab0ab76a4ae43f3811c51 (patch) | |
tree | 6e3bbae02c5df2bd389363fba8ba39442ee801a5 /lib/PublicInbox | |
parent | 5adf8d639e9b5abd4cbac975d70ddc0fb76541fc (diff) | |
download | public-inbox-408ace3fa76b5987245ab0ab76a4ae43f3811c51.tar.gz |
This saves one round-trip request response so reduces latency over slow links. The redirect only exists for convenience and isn't 100% reliable in case the Message-ID terminates with a .(html|txt) suffix.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 1c6d1efd..0a08c7f2 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -243,9 +243,8 @@ sub add_to_feed { my $mid = $mime->header_obj->header_raw('Message-ID'); defined $mid or return 0; $mid = PublicInbox::Hval->new_msgid($mid); - my $href = $mid->as_href; - my $content = PublicInbox::View->as_feed_entry($mime, - "$fullurl$href.html"); + my $href = $mid->as_href . '.html'; + my $content = PublicInbox::View->as_feed_entry($mime, $fullurl . $href); defined($content) or return 0; my $subject = mime_header($mime, 'Subject') or return 0; |