X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhelper%2Fpipeline.inc;h=b7175c109fac1b24d4f4a31e000e08cda288ae4d;hb=b62c3811cac715f7a0e668ee864d57fd730b47b3;hp=815b46339b672574284138ec976cf8da0b472827;hpb=aba1f7d332d866ca1f0397d46751864e430985f3;p=m6w6%2Fext-http 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); }