Fix server_search test.

The pattern (given as a query string) must be url decoded.
This commit is contained in:
Matthieu Gautier 2023-06-06 16:23:10 +02:00
parent 5f4dad60b9
commit 556b94daae
1 changed files with 2 additions and 1 deletions

View File

@ -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