mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 14:48:25 -04:00
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…
x
Reference in New Issue
Block a user