mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-21 08:35:36 -04:00
Revert "added 204 code for empty return of search"
Returning status code 204 in case of an empty results doesn't show the empty results page as described in #466. Reverting the changes in #396 fixes the issue.
This commit is contained in:
1 parent
ab0ffb55bc
commit
be6b58c6ad
2 files changed
+1
-15
No files matched your search
@@ -216,15 +216,6 @@ TEST_F(ServerTest, 200)
|
||||
EXPECT_EQ(200, zfs1_->GET(res.url)->status) << "res.url: " << res.url;
|
||||
}
|
||||
|
||||
// seperate test for 204 code
|
||||
|
||||
TEST_F(ServerTest, EmptySearchReturnsA204StatusCode)
|
||||
{
|
||||
const char* url="/search?content=zimfile&pattern=abcd";
|
||||
auto res=zfs1_->GET(url);
|
||||
EXPECT_EQ(204, res->status) << "res.url: " << url;
|
||||
}
|
||||
|
||||
TEST_F(ServerTest, CompressibleContentIsCompressedIfAcceptable)
|
||||
{
|
||||
for ( const Resource& res : resources200Compressible ) {
|
||||
|
||||
Reference in new issue
Block a user