diff lib/Test/Nginx.pm @ 271:1a6eef7ac914

Tests: test for r->request_body->buf incorrect reuse.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 20 Mar 2013 19:31:47 +0400
parents f857180657c9
children 6cbcfb4ef7ee
line wrap: on
line diff
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -420,6 +420,11 @@ sub http($;%) {
 		select undef, undef, undef, $extra{sleep} if $extra{sleep};
 		return '' if $extra{aborted};
 
+		if ($extra{body}) {
+			log_out($extra{body});
+			$s->print($extra{body});
+		}
+
 		local $/;
 		$reply = $s->getline();