branch off v1 as R_1_7
[m6w6/ext-http] / tests / send_failed_precond_001.phpt
index 6424ecbe7609c0107f09ce224f0a934803357152..c8dc1c862e52aebc24d698b3a0f2a0f2567717f7 100644 (file)
@@ -6,15 +6,16 @@ include 'skip.inc';
 checkcgi();
 checkver(5.1);
 ?>
+--ENV--
+HTTP_RANGE=bytes=0-1
+HTTP_IF_UNMODIFIED_SINCE=Thu, 01 Jan 1970 00:16:40 GMT
 --FILE--
 <?php
-$_SERVER['HTTP_RANGE'] = 'bytes=0-1';
-$_SERVER['HTTP_IF_UNMODIFIED_SINCE'] = http_date(10000);
 http_cache_last_modified();
 http_send_file(__FILE__);
 ?>
 --EXPECTF--
-Status: 412
+Status: 412%s
 X-Powered-By: %s
 Cache-Control: private, must-revalidate, max-age=0
 Last-Modified: %s