]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r708902 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 11 Nov 2008 19:59:22 +0000 (19:59 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 11 Nov 2008 19:59:22 +0000 (19:59 +0000)
Avoid time traveling :)

Reviewed by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@713142 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/metadata/mod_expires.c

diff --git a/STATUS b/STATUS
index 419816d9425a85195f976ae9c49fe38fb7f9df90..adf7f35bf12b476c72e907907852a667aa9f204d 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -113,14 +113,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
         Trunk version of patch works
      +1: rpluem, jim, pgollucci
 
-   * mod_expires: Do not sets negative max-age / Expires header in the past.
-     PR 39774 [Jim Jagielski]
-     Trunk version of patch:
-        http://svn.apache.org/viewvc?rev=708902&view=rev
-     Backport version for 2.2.x of patch:
-        Trunk version of patch works
-     +1: rpluem, jim, pgollucci
-
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 984ee9312a7299dc60ca1e3be2b647fda7195040..16a4ff0b42d817b8495b4347f2355971f7dcffea 100644 (file)
@@ -430,6 +430,9 @@ static int set_expiration_fields(request_rec *r, const char *code,
     }
 
     expires = base + additional;
+    if (expires < r->request_time) {
+        expires = r->request_time;
+    }
     apr_table_mergen(t, "Cache-Control",
                      apr_psprintf(r->pool, "max-age=%" APR_TIME_T_FMT,
                                   apr_time_sec(expires - r->request_time)));