webui: ensure there is output for successful ops

This commit is contained in:
Adam Sutton 2013-08-15 12:29:53 +01:00
parent 09abad751e
commit a63df85c64

View file

@ -77,6 +77,8 @@ webui_api_handler
}
/* Output response */
if (!r && !resp)
resp = htsmsg_create_map();
if (resp) {
htsmsg_json_serialize(resp, &hc->hc_reply, 0);
http_output_content(hc, "text/x-json; charset=UTF-8");