[pLog-svn] r2143 - plog/branches/plog-1.0.2/class/view
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue May 31 20:47:16 GMT 2005
Author: oscar
Date: 2005-05-31 20:47:16 +0000 (Tue, 31 May 2005)
New Revision: 2143
Modified:
plog/branches/plog-1.0.2/class/view/view.class.php
Log:
added by default an "HTTP/1.0 200 OK" response for all requests. If another view wants to use
another HTTP status code, just do so... PHP will use the last one specified. This should solve some
strange issues with search-engine friendly urls reporting HTTP 404 errors.
Modified: plog/branches/plog-1.0.2/class/view/view.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/view/view.class.php 2005-05-31 19:55:06 UTC (rev 2142)
+++ plog/branches/plog-1.0.2/class/view/view.class.php 2005-05-31 20:47:16 UTC (rev 2143)
@@ -83,6 +83,11 @@
// and no form has caused any success yet either!
$this->setValue( "formIsSuccess", false );
+ // let's send an HTTP 200 header response... If somebody wants to overwrite it later
+ // on, php should keep in mind that the valid one will be the last one so it is
+ // fine to do this more than once and twice
+ $this->addHeaderResponse( "HTTP/1.0 200 OK" );
+
// initialize a request object, in case it is needed somewhere
$this->_request = new Request( HttpVars::getRequest());
}
More information about the pLog-svn
mailing list