Renamed a data member

This commit is contained in:
Veloman Yunkan 2023-02-08 21:45:24 +01:00
parent 02f631fdb6
commit c2fffacbbd
2 changed files with 4 additions and 4 deletions

View File

@ -415,7 +415,7 @@ InternalServer::InternalServer(Library* library,
m_addr(addr),
m_port(port),
m_root(normalizeRootUrl(root)),
m_rootWithSeparator(m_root + "/"),
m_rootPrefixOfDecodedURL(m_root + "/"),
m_nbThreads(nbThreads),
m_multizimSearchLimit(multizimSearchLimit),
m_verbose(verbose),
@ -522,7 +522,7 @@ MHD_Result InternalServer::handlerCallback(struct MHD_Connection* connection,
printf("full_url : %s\n", fullUrl);
}
const auto url = fullURL2LocalURL(fullUrl, m_rootWithSeparator);
const auto url = fullURL2LocalURL(fullUrl, m_rootPrefixOfDecodedURL);
RequestContext request(connection, m_root, url, method, version);
if (m_verbose.load() ) {

View File

@ -163,8 +163,8 @@ class InternalServer {
private: // data
std::string m_addr;
int m_port;
std::string m_root; // URI-encoded
std::string m_rootWithSeparator; // URI-decoded
std::string m_root; // URI-encoded
std::string m_rootPrefixOfDecodedURL; // URI-decoded
int m_nbThreads;
unsigned int m_multizimSearchLimit;
std::atomic_bool m_verbose;