cvs: smarty / NEWS /libs Smarty.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1060550871@cvsserver>
messju		Sun Aug 10 17:27:51 2003 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty.class.php 
  Log:
  fixed status-header for cache_modified_check under cgi-sapi
  
  
Index: smarty/NEWS
diff -u smarty/NEWS:1.386 smarty/NEWS:1.387
--- smarty/NEWS:1.386	Wed Aug  6 07:35:58 2003
+++ smarty/NEWS	Sun Aug 10 17:27:51 2003
@@ -1,3 +1,4 @@
+  - fixed status-header for cache_modified_check under cgi-sapi (messju)
   - added optional parameter $cache_attrs to register_function() and
     register_block(). $cache_attrs is an array containing attribute-
     names that should be cached on calls to functions that have
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.434 smarty/libs/Smarty.class.php:1.435
--- smarty/libs/Smarty.class.php:1.434	Fri Aug  8 16:41:37 2003
+++ smarty/libs/Smarty.class.php	Sun Aug 10 17:27:51 2003
@@ -43,7 +43,7 @@
  * @version 2.5.0-cvs
  */
 
-/* $Id: Smarty.class.php,v 1.434 2003/08/08 20:41:37 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.435 2003/08/10 21:27:51 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -1271,7 +1271,11 @@
                         if (@count($this->_cache_info['insert_tags']) == 0
                             && !$this->_cache_serials
                             && $_gmt_mtime == $_last_modified_date) {
-                            header("HTTP/1.1 304 Not Modified");
+                            if (php_sapi_name()=='cgi')
+                                header("Status: 304 Not Modified");
+                            else
+                                header("HTTP/1.1 304 Not Modified");
+
                         } else {
                             header("Last-Modified: ".$_gmt_mtime);
                             echo $_smarty_results;



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.