From a63df85c647f3cdb8d8c234f267a8c46a3776844 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Thu, 15 Aug 2013 12:29:53 +0100 Subject: [PATCH] webui: ensure there is output for successful ops --- src/webui/webui_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webui/webui_api.c b/src/webui/webui_api.c index 45b93dea..db5a8f7b 100644 --- a/src/webui/webui_api.c +++ b/src/webui/webui_api.c @@ -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");