[shibboleth-sp2] 26/29: Correct expiration header format.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:30:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 2.4.3
in repository shibboleth-sp2.

commit a848876ba9b0197d2b55186590cc0b6390c2cbd1
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Sat Jul 2 22:26:50 2011 +0000

    Correct expiration header format.
---
 apache/mod_apache.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apache/mod_apache.cpp b/apache/mod_apache.cpp
index 0b72e37..57ae0aa 100644
--- a/apache/mod_apache.cpp
+++ b/apache/mod_apache.cpp
@@ -591,8 +591,8 @@ public:
     HTTPResponse::sendRedirect(url);
     ap_table_set(m_req->headers_out, "Location", url);
     if (m_dc->bExpireRedirects == 1) {
-        ap_table_set(m_req->err_headers_out, "Expires", "01-Jan-1997 12:00:00 GMT");
-        ap_table_set(m_req->err_headers_out, "Cache-Control", "private,no-store,no-cache");
+        ap_table_set(m_req->err_headers_out, "Expires", "Wed, 01 Jan 1997 12:00:00 GMT");
+        ap_table_set(m_req->err_headers_out, "Cache-Control", "private,no-store,no-cache,max-age=0");
     }
     return REDIRECT;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list