X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fhelper%2Fpipeline.inc;fp=tests%2Fhelper%2Fpipeline.inc;h=b7175c109fac1b24d4f4a31e000e08cda288ae4d;hp=815b46339b672574284138ec976cf8da0b472827;hb=5016399a1e84ca8d23fa74934300e703155e586b;hpb=eafbe5359bfb82233e5591147dc589cb957562c6 diff --git a/tests/helper/pipeline.inc b/tests/helper/pipeline.inc index 815b463..b7175c1 100644 --- a/tests/helper/pipeline.inc +++ b/tests/helper/pipeline.inc @@ -3,7 +3,8 @@ include "server.inc"; function respond($client, $msg) { - (new http\Env\Response)->setEnvRequest($msg) + $r = new http\Env\Response; + $r->setEnvRequest($msg) ->setHeader("X-Req", $msg->getRequestUrl()) ->send($client); }