X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fhelper%2Fproxy.inc;fp=tests%2Fhelper%2Fproxy.inc;h=363d76f4b88be43a61ff0649caafa0c98d5e9a04;hp=61b20dd1c1b38e3a26190d5d401216387991bc07;hb=3f5da039a09164701de8638669fe6e8d4e916970;hpb=ca39d9b0f345348f48e103055d6d85f4cf0383c2 diff --git a/tests/helper/proxy.inc b/tests/helper/proxy.inc index 61b20dd..363d76f 100644 --- a/tests/helper/proxy.inc +++ b/tests/helper/proxy.inc @@ -16,6 +16,7 @@ serve(function($client) { /* return the initial message as response body */ $response = new http\Env\Response; - $response->getBody()->append($request); + /* avoid OOM with $response->getBody()->append($request); */ + $request->toStream($response->getBody()->getResource()); $response->send($client); });