3
0
Fork 0

+ small improvement of the debug messages

small_fixes
kelson42 13 years ago
parent 9d81b35ebd
commit 43f321e92f

@ -207,6 +207,14 @@ static int accessHandlerCallback(void *cls,
/* Get suggestions */ /* Get suggestions */
if (!strcmp(url, "/suggest") && reader != NULL) { if (!strcmp(url, "/suggest") && reader != NULL) {
const char* term = MHD_lookup_connection_value(connection, MHD_GET_ARGUMENT_KIND, "term"); const char* term = MHD_lookup_connection_value(connection, MHD_GET_ARGUMENT_KIND, "term");
if (term == NULL) {
term = "";
}
if (isVerbose()) {
std::cout << "Searching suggestions for: \"" << term<< "\"" << endl;
}
reader->searchSuggestions(term, 10); reader->searchSuggestions(term, 10);
string suggestion; string suggestion;
content = "["; content = "[";

Loading…
Cancel
Save