X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient025.phpt;h=3c4793e96b5793a5a2b25f31fa1c80e4b59b7c7f;hp=18c5095cdf01d8289f4b61991aea2d3805db903c;hb=4a975fc65c1885c505cb1271411cef14724caf4c;hpb=5560fddc86c1fbbc53ab57e885acbd5e879077a8 diff --git a/tests/client025.phpt b/tests/client025.phpt index 18c5095..3c4793e 100644 --- a/tests/client025.phpt +++ b/tests/client025.phpt @@ -14,11 +14,11 @@ echo "Test\n"; server("proxy.inc", function($port) { $client = new http\Client; $request = new http\Client\Request("PUT", "http://localhost:$port"); - $request->setOptions(["resume" => 1, "expect_100_timeout" => 0]); + $request->setOptions(array("resume" => 1, "expect_100_timeout" => 0)); $request->getBody()->append("123"); echo $client->enqueue($request)->send()->getResponse(); }); - +// Content-length is 2 instead of 3 in older libcurls ?> ===DONE=== --EXPECTF-- @@ -34,8 +34,8 @@ Content-Range: bytes 1-2/3 User-Agent: %s Host: localhost:%d Accept: */* -Content-Length: 3 +Content-Length: %d Expect: 100-continue -X-Original-Content-Length: 3 +X-Original-Content-Length: %d 23===DONE===