X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp_command.c;h=a86aabbee09bf18278bf20cc87aad8ddfec2a073;hb=ebc05bf9ed7336e6341bd94a07fa07063accc24b;hp=2f893c8a86aa843a392a55d657d8bcd483000241;hpb=8d9de1cd1d62b61855e5cf0dc166d131092286c2;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 2f893c8..a86aabb 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -642,6 +642,11 @@ static void cmd_bytarget(struct http_channel *c) wrbuf_puts(c->wrbuf, ht[i].settings_xml); wrbuf_puts(c->wrbuf, "\n"); } + if (ht[i].suggestions_xml && ht[i].suggestions_xml[0]) { + wrbuf_puts(c->wrbuf, ""); + wrbuf_puts(c->wrbuf, ht[i].suggestions_xml); + wrbuf_puts(c->wrbuf, ""); + } wrbuf_puts(c->wrbuf, ""); } response_close(c, "bytarget"); @@ -1049,7 +1054,6 @@ static void cmd_search(struct http_channel *c) } response_open(c, "search"); response_close(c, "search"); - http_send_response(c); release_session(c, s); }