Merge branch 'v2.6.x'
[m6w6/ext-http] / tests / client022.phpt
index 255de083bb3522a2df2751795c2e5943963802dd..e813cdc0c953c018a044569526857e11cdb10d40 100644 (file)
@@ -21,7 +21,9 @@ nghttpd(function($port) {
                        "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();
 });
 
@@ -29,7 +31,7 @@ nghttpd(function($port) {
 ===DONE===
 --EXPECTF--
 Test
-HTTP/2.0 200
+HTTP/2 200
 %a
 
 <!doctype html>