Author: chabotc
Date: Fri Oct 17 09:02:36 2008
New Revision: 705652

URL: http://svn.apache.org/viewvc?rev=705652&view=rev
Log:
SHINDIG-657 by Gonzalo Aune - invalid date string

Modified:
    incubator/shindig/trunk/php/src/gadgets/ProxyHandler.php

Modified: incubator/shindig/trunk/php/src/gadgets/ProxyHandler.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/ProxyHandler.php?rev=705652&r1=705651&r2=705652&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/ProxyHandler.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/ProxyHandler.php Fri Oct 17 
09:02:36 2008
@@ -183,7 +183,7 @@
                                }
                        }
                        $etag = md5($result->getResponseContent());
-                       $lastModified = 
$result->getResponseHeader('Last-Modified') != null ? 
$result->getResponseHeader('Last-Modified') : gmdate('D, d M Y H:i:s', 
$result->getCreated() . ' GMT');
+                       $lastModified = 
$result->getResponseHeader('Last-Modified') != null ? 
$result->getResponseHeader('Last-Modified') : gmdate('D, d M Y H:i:s', 
$result->getCreated()) . ' GMT';
                        $notModified = false;
                        // If HTTP_PRAGMA | HTTP_CACHE_CONTROL == no-cache, the 
browser wants to do a 'forced reload' 
                        if (! isset($_SERVER['HTTP_PRAGMA']) || ! 
strstr(strtolower($_SERVER['HTTP_PRAGMA']), 'no-cache') && (! 
isset($_SERVER['HTTP_CACHE_CONTROL']) || ! 
strstr(strtolower($_SERVER['HTTP_CACHE_CONTROL']), 'no-cache'))) {


Reply via email to