RFC doesn't specify that HTTP GET cannot have a body
authorKyle Fuller <redacted>
Fri, 10 Apr 2015 19:28:25 +0000 (20:28 +0100)
committerKyle Fuller <redacted>
Mon, 10 Aug 2015 21:10:00 +0000 (22:10 +0100)
palaver.cpp

index 20a692d576c451634e382f5cdce0df926cc9c22d..4c2e5ffa0da85592e44c53b1192a49127368303a 100644 (file)
@@ -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());
                }
 
git clone https://git.99rst.org/PROJECT