]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect HTTP encoding
authorGunnar Beutner <gunnar@beutner.name>
Fri, 28 Aug 2015 08:03:26 +0000 (10:03 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 28 Aug 2015 08:03:26 +0000 (10:03 +0200)
refs #10024

lib/remote/httpresponse.cpp

index 649bcb8bd7b81b52ff22f0c7e6a1f9ee633430eb..a9af73bfd100db11232dffd5be18652ad75c7b38 100644 (file)
@@ -72,9 +72,6 @@ void HttpResponse::WriteBody(const char *data, size_t count)
 {
        ASSERT(m_State == HttpResponseHeaders || m_State == HttpResponseBody);
 
-       if (count == 0)
-               return;
-
        if (m_Request.ProtocolVersion == HttpVersion10) {
                if (!m_Body)
                        m_Body = new FIFO();