From 31afda256c813443062e0504213d41732e50ee45 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Jun 2016 04:46:38 +0000 Subject: view: msg_html uses getline body to reduce latency We need to ensure we show the message body ASAP since the thread generation via Xapian could take a while and maybe even raise an exception or crash. --- lib/PublicInbox/WWW.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/WWW.pm') diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 5fa4e380..c25deff3 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -228,7 +228,7 @@ sub get_mid_html { my $mime = Email::MIME->new($x); searcher($ctx); [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], - [ PublicInbox::View::msg_html($ctx, $mime, $foot) ] ]; + PublicInbox::View::msg_html($ctx, $mime, $foot) ]; } # /$INBOX/$MESSAGE_ID/t/ -- cgit v1.2.3-24-ge0c7