mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Fix server_search test.
The pattern (given as a query string) must be url decoded.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define CPPHTTPLIB_ZLIB_SUPPORT 1
|
||||
#include "./httplib.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "../src/tools/stringTools.h"
|
||||
|
||||
#define SERVER_PORT 8101
|
||||
#include "server_testing_tools.h"
|
||||
@ -716,7 +717,7 @@ struct TestData
|
||||
|
||||
std::string getPattern() const
|
||||
{
|
||||
return extractQueryValue("pattern");
|
||||
return kiwix::urlDecode(extractQueryValue("pattern"), true);
|
||||
}
|
||||
|
||||
std::string getLang() const
|
||||
|
Reference in New Issue
Block a user