X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fbug66388.phpt;h=77d50c7349384823b71ed5f7272a343a2ca1cdd6;hp=bc624dc97bb1d224c51caa8e22c94178b5db811b;hb=3db1f1fe45ab051a57f70f637618e02f7985406e;hpb=3a1d30dce722bcea169c9624a9fc7202e9d9a462 diff --git a/tests/bug66388.phpt b/tests/bug66388.phpt index bc624dc..77d50c7 100644 --- a/tests/bug66388.phpt +++ b/tests/bug66388.phpt @@ -3,6 +3,7 @@ Bug #66388 (Crash on POST with Content-Length:0 and untouched body) --SKIPIF-- --FILE-- 0 - ) -); -$client->enqueue($request); -echo $client->send()->getResponse()->getResponseCode(); +server("proxy.inc", function($port) { + $client = new Client(); + $request = new Request( + 'POST', + "http://localhost:$port/", + array( + 'Content-Length' => 0 + ) + ); + $client->enqueue($request); + echo $client->send()->getResponse()->getResponseCode(); +}); ?> ===DONE=== ---EXPECT-- +--EXPECTF-- Test -401 +200 ===DONE===