]> granicus.if.org Git - pdns/commitdiff
yahttp: fix empty body for !POST requests
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 28 Jan 2014 20:06:42 +0000 (21:06 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 28 Jan 2014 20:12:21 +0000 (21:12 +0100)
pdns/ext/yahttp/yahttp/reqresp.cpp

index 0c7a0c6c39b1c683eea75f5528d455de570b955e..62117e31b2e2e149b15d41b2a3186ffa3d9b9f0d 100644 (file)
@@ -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?