fix http\Params::__toString() with RFC5988 payload; fix tests
[m6w6/ext-http] / tests / helper / proxy.inc
index 80a007353c4f81e32a924ea7fc955e47d8217074..f99dd97cf735575c0cbd7857d0ab77bae9ead7b6 100644 (file)
@@ -1,5 +1,6 @@
 <?php 
 
+include "dump.inc";
 include "server.inc";
 
 serve(function($client) {
@@ -18,6 +19,6 @@ serve(function($client) {
        /* return the initial message as response body */
        $response = new http\Env\Response;
        /* avoid OOM with $response->getBody()->append($request); */
-       $request->toStream($response->getBody()->getResource());
+       dump_message($response->getBody()->getResource(), $request);
        $response->send($client);
 });