if url is empty or equal to "/", load main page

This commit is contained in:
kelson42 2011-12-22 11:30:29 +00:00
parent 554f5035a0
commit fc7d17b32a

View File

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