From eabfd9d8d9129e79920421aef3fec8eb0464f34c Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Tue, 28 Jan 2014 21:06:42 +0100 Subject: [PATCH] yahttp: fix empty body for !POST requests --- pdns/ext/yahttp/yahttp/reqresp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/ext/yahttp/yahttp/reqresp.cpp b/pdns/ext/yahttp/yahttp/reqresp.cpp index 0c7a0c6c3..62117e31b 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? -- 2.40.0