From: Christian Hofstaedtler Date: Tue, 28 Jan 2014 20:06:42 +0000 (+0100) Subject: yahttp: fix empty body for !POST requests X-Git-Tag: rec-3.6.0-rc1~213^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eabfd9d8d9129e79920421aef3fec8eb0464f34c;p=thirdparty%2Fpdns.git yahttp: fix empty body for !POST requests --- diff --git a/pdns/ext/yahttp/yahttp/reqresp.cpp b/pdns/ext/yahttp/yahttp/reqresp.cpp index 0c7a0c6c39..62117e31b2 100644 --- a/pdns/ext/yahttp/yahttp/reqresp.cpp +++ b/pdns/ext/yahttp/yahttp/reqresp.cpp @@ -174,7 +174,8 @@ namespace YaHTTP { } } - if (request->method != "POST") + // skip body for GET + if (request->method == "GET") return true; // do we have content-length?