Fix string compare check

This commit is contained in:
Ai Lin Chia
2017-12-04 14:54:34 +01:00
parent 706790e78c
commit a44144fe9c

@ -82,14 +82,14 @@ bool sendPageDocProcess(TcpSocket *s, HttpRequest *r) {
}
break;
case 10:
if (strncasecmp(type, "docrebuild", 9) == 0) {
if (strncasecmp(type, "docrebuild", 10) == 0) {
// docrebuild
if (starts_with(keyStr.c_str(), "http")) {
docProcess = &g_docRebuildUrl;
} else {
docProcess = &g_docRebuild;
}
} else if (strncasecmp(type, "docrebuild", 9) == 0) {
} else if (strncasecmp(type, "docreindex", 10) == 0) {
// docreindex
if (starts_with(keyStr.c_str(), "http")) {
docProcess = &g_docReindexUrl;