X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient022.phpt;fp=tests%2Fclient022.phpt;h=a59971ccbcaccb7b99bdac8e83ece4c51ede3cbd;hp=e3f7f118812a86cc1faf11a4fd02615fbbfbc553;hb=ee21a57095f838337945bd3d2e19bd20bdfee3ea;hpb=e67b70752bcc37ccf96d512a81799298f707682e diff --git a/tests/client022.phpt b/tests/client022.phpt index e3f7f11..a59971c 100644 --- a/tests/client022.phpt +++ b/tests/client022.phpt @@ -18,10 +18,12 @@ nghttpd(function($port) { $client->setOptions([ "protocol" => http\Client\Curl\HTTP_VERSION_2_0, "ssl" => [ - "cafile" => __DIR__."/helper/http2.crt", + "cainfo" => __DIR__."/helper/http2.crt", ] ]); - $client->enqueue(new http\Client\Request("GET", "https://localhost:$port")); + + $request = new http\Client\Request("GET", "https://localhost:$port"); + $client->enqueue($request); echo $client->send()->getResponse(); });