mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 11:22:38 -04:00
if url is empty or equal to "/", load main page
This commit is contained in:
parent
554f5035a0
commit
fc7d17b32a
@ -258,6 +258,10 @@ static int accessHandlerCallback(void *cls,
|
||||
/* urlstr */
|
||||
std::string urlStr = string(url);
|
||||
|
||||
/* Check if url not empty */
|
||||
if (urlStr.empty() || urlStr == "/")
|
||||
urlStr = reader->getMainPageUrl();
|
||||
|
||||
/* Mutex Lock */
|
||||
pthread_mutex_lock(&readerLock);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user