diff options
author | Eric Wong <e@80x24.org> | 2018-04-03 10:34:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-04-03 10:48:05 +0000 |
commit | 15eb65ffd59c7cf5cce67c6b7621f63194fd1083 (patch) | |
tree | cc27bbcebbb4ad88cd2c43ca0b4a8a68120f6988 /t/psgi_search.t | |
parent | 4f0b09919ae9c8823bf6c1fa1452bc27945952a3 (diff) | |
download | public-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 't/psgi_search.t')
-rw-r--r-- | t/psgi_search.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/psgi_search.t b/t/psgi_search.t index 84b3daa3..cf5a7e91 100644 --- a/t/psgi_search.t +++ b/t/psgi_search.t @@ -70,6 +70,10 @@ test_psgi(sub { $www->call(@_) }, sub { $res = $cb->(GET('/test/?q=s:test&l=5e')); is($res->code, 200, 'successful search result'); is_deeply([], $warn, 'no warnings from non-numeric comparison'); + + $res = $cb->(POST('/test/?q=s:bogus&x=m')); + is($res->code, 404, 'failed search result gives 404'); + is_deeply([], $warn, 'no warnings'); }); done_testing(); |