From: Alexander A. Klimov Date: Mon, 18 Jun 2018 14:02:22 +0000 (+0200) Subject: HttpRequest#ParseBody(): indicate success on complete body X-Git-Tag: v2.9.0~29^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F6383%2Fhead;p=icinga2 HttpRequest#ParseBody(): indicate success on complete body refs #6184 --- diff --git a/lib/remote/httprequest.cpp b/lib/remote/httprequest.cpp index f698b2101..8f6c11e31 100644 --- a/lib/remote/httprequest.cpp +++ b/lib/remote/httprequest.cpp @@ -142,9 +142,9 @@ bool HttpRequest::ParseBody(StreamReadContext& src, bool may_wait) if (size == 0) { CompleteBody = true; - return false; - } else - return true; + } + + return true; } if (src.Eof)