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