From: Dennis Schafroth Date: Fri, 28 Oct 2011 13:35:00 +0000 (+0200) Subject: print suggestions if present X-Git-Tag: v1.6.5~2^2~2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=46c9d84fb19ceb838f5372f414e07f314575cb38;p=pazpar2-moved-to-github.git print suggestions if present --- diff --git a/src/http_command.c b/src/http_command.c index 963740f..587c908 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -642,6 +642,8 @@ 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) + wrbuf_puts(c->wrbuf, ht[i].suggestions_xml); wrbuf_puts(c->wrbuf, ""); } response_close(c, "bytarget");