From 209529ff95d6337e73e86dc00a0254b3666a6925 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 19 Mar 2016 10:18:16 +0100 Subject: [PATCH] controlapi: use hh->SendResult() in new getMoviesCGI() Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c5f3531913c26547a6932485adc48f3b81ebcc2d Author: vanhofen Date: 2016-03-19 (Sat, 19 Mar 2016) Origin message was: ------------------ - controlapi: use hh->SendResult() in new getMoviesCGI() ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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