about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchView.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-04-03 10:34:54 +0000
committerEric Wong <e@80x24.org>2018-04-03 10:48:05 +0000
commit15eb65ffd59c7cf5cce67c6b7621f63194fd1083 (patch)
treecc27bbcebbb4ad88cd2c43ca0b4a8a68120f6988 /lib/PublicInbox/SearchView.pm
parent4f0b09919ae9c8823bf6c1fa1452bc27945952a3 (diff)
downloadpublic-inbox-15eb65ffd59c7cf5cce67c6b7621f63194fd1083.tar.gz
Having zero search results means we never get a chance
to populate the Content-Disposition header for mbox
downloads.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r--lib/PublicInbox/SearchView.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index 219006a0..1c4442e4 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -22,6 +22,7 @@ sub mbox_results {
         my ($ctx) = @_;
         my $q = PublicInbox::SearchQuery->new($ctx->{qp});
         my $x = $q->{x};
+        require PublicInbox::Mbox;
         return PublicInbox::Mbox::mbox_all($ctx, $q->{'q'}) if $x eq 'm';
         sres_top_html($ctx);
 }