]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect return value
authorGunnar Beutner <gunnar.beutner@icinga.com>
Wed, 28 Feb 2018 09:50:33 +0000 (10:50 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Wed, 28 Feb 2018 09:50:33 +0000 (10:50 +0100)
lib/remote/httprequest.cpp

index a50cd378341776a4680c4462e95b2ba1b0703849..55d6f0a3fc2884c1f38a1f932fa1684293847a52 100644 (file)
@@ -115,7 +115,7 @@ bool HttpRequest::ParseBody(StreamReadContext& src, bool may_wait)
        /* we're done if the request doesn't contain a message body */
        if (!Headers->Contains("content-length") && !Headers->Contains("transfer-encoding")) {
                CompleteBody = true;
-               return false;
+               return true;
        } else if (!m_Body)
                m_Body = new FIFO();