X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhelper%2Fproxy.inc;h=61a68bd05d909925a00d90e26baeffabb9c873f6;hb=749dbbaa0e7c5e33d27121dab0f53bda85a67339;hp=f99dd97cf735575c0cbd7857d0ab77bae9ead7b6;hpb=0a5bb2d697afe41949b22afa679d7a5aa4e11f13;p=m6w6%2Fext-http diff --git a/tests/helper/proxy.inc b/tests/helper/proxy.inc index f99dd97..61a68bd 100644 --- a/tests/helper/proxy.inc +++ b/tests/helper/proxy.inc @@ -7,7 +7,9 @@ serve(function($client) { /* this might be a proxy connect or a standard request */ $request = new http\Message($client, false); - if ($request->getHeader("Proxy-Connection")) { + /* libcurl >= 7.48 does not send Proxy-Connection anymore */ + if ($request->getHeader("Proxy-Connection") + || $request->getRequestMethod() === "CONNECT") { $response = new http\Env\Response; $response->setEnvRequest($request); $response->send($client);