fix http\Params::__toString() with RFC5988 payload; fix tests
[m6w6/ext-http] / tests / helper / upload.inc
index 9502d2b6cdeb692e226508f867e8f8a92e07a226..ddc06a88f626b45f01cbc8094b48c9b79ca75096 100644 (file)
@@ -1,5 +1,6 @@
 <?php 
 
+include "dump.inc";
 include "server.inc";
 
 serve(function($client) {
@@ -15,6 +16,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);
 });