W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2008

2008/link-testsuite http.php,1.1,1.2

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 28 Jan 2008 05:27:34 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JJMWs-0002a5-AX@lionel-hutz.w3.org>

Update of /sources/public/2008/link-testsuite
In directory hutz:/tmp/cvs-serv9873

Modified Files:
	http.php 
Log Message:
seems like header() is not quite doing what I asked

Index: http.php
===================================================================
RCS file: /sources/public/2008/link-testsuite/http.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- http.php	28 Jan 2008 02:16:06 -0000	1.1
+++ http.php	28 Jan 2008 05:27:32 -0000	1.2
@@ -36,9 +36,7 @@
 if ($_GET['code'] != '') {
     if(isset($codes[$_GET['code']])) {
         $code = $_GET['code'];
-        header('', 
-        TRUE, 
-        (int) $code);
+        header("HTTP/1.0 $code $codes[$code]");
     }
 }
 ?>
Received on Monday, 28 January 2008 05:27:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT