From c5f3531913c26547a6932485adc48f3b81ebcc2d Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 19 Mar 2016 10:18:16 +0100 Subject: [PATCH] - controlapi: use hh->SendResult() in new getMoviesCGI() --- src/nhttpd/tuxboxapi/controlapi.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 03c165a93..30d0874cc 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -3622,13 +3622,8 @@ void CControlAPI::getMoviesCGI(CyhookHandler *hh) { } result = hh->outArray("movies", result); - // write footer - if (outType == json) { - hh->WriteLn(json_out_success(result)); - } - else { - hh->WriteLn(result); - } + + hh->SendResult(result); } //Helpfunction to get movies of a dir