webui: ensure there is output for successful ops
This commit is contained in:
parent
09abad751e
commit
a63df85c64
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue