]> granicus.if.org Git - icinga2/commitdiff
HttpRequest#ParseBody(): indicate success on complete body 6383/head
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 18 Jun 2018 14:02:22 +0000 (16:02 +0200)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 18 Jun 2018 14:02:22 +0000 (16:02 +0200)
refs #6184

lib/remote/httprequest.cpp

index f698b2101cb9388d5e9f26c210deedd2e0edf648..8f6c11e31495ef5f63e7319e7a137a60de62b0ba 100644 (file)
@@ -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)