[mapserver-commits] r12490 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:31:48 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:31:48 -0700 (Fri, 26 Aug 2011)
New Revision: 12490

Modified:
   trunk/mapserver/mapcache/src/mod_geocache.c
Log:


Modified: trunk/mapserver/mapcache/src/mod_geocache.c
===================================================================
--- trunk/mapserver/mapcache/src/mod_geocache.c	2011-08-26 11:31:23 UTC (rev 12489)
+++ trunk/mapserver/mapcache/src/mod_geocache.c	2011-08-26 11:31:48 UTC (rev 12490)
@@ -138,6 +138,9 @@
       if((rc = ap_meets_conditions(r)) != OK) {
          return rc;
       }
+      char *timestr = apr_palloc(r->pool, APR_RFC822_DATE_LEN);
+      apr_rfc822_date(timestr, response->mtime);
+      apr_table_setn(r->headers_out, "Last-Modified", timestr);
    }
    if(response->headers && !apr_is_empty_table(response->headers)) {
       const apr_array_header_t *elts = apr_table_elts(response->headers);



More information about the mapserver-commits mailing list