From: Kyle Fuller Date: Fri, 10 Apr 2015 19:28:25 +0000 (+0100) Subject: RFC doesn't specify that HTTP GET cannot have a body X-Git-Tag: 1.0.0~6 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=343edc2a9b3d6fa0b2870c2844f3a460fdabee75;p=znc-palaver.git RFC doesn't specify that HTTP GET cannot have a body --- diff --git a/palaver.cpp b/palaver.cpp index 20a692d..4c2e5ff 100644 --- a/palaver.cpp +++ b/palaver.cpp @@ -98,7 +98,7 @@ public: mcsHeaders["Connection"] = "close"; mcsHeaders["User-Agent"] = "ZNC"; - if (sMethod.Equals("GET") == false) { + if (sMethod.Equals("GET") == false || sContent.length() > 0) { mcsHeaders["Content-Length"] = CString(sContent.length()); }