[shibboleth-sp2] 29/29: Turn redirect expiration on by default.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:30:29 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 fe7430791b8db09adca1539a4f31f51098860c98
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Wed Jul 6 17:32:43 2011 +0000

    Turn redirect expiration on by default.
---
 apache/mod_apache.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apache/mod_apache.cpp b/apache/mod_apache.cpp
index 57ae0aa..8f04472 100644
--- a/apache/mod_apache.cpp
+++ b/apache/mod_apache.cpp
@@ -590,7 +590,7 @@ public:
   long sendRedirect(const char* url) {
     HTTPResponse::sendRedirect(url);
     ap_table_set(m_req->headers_out, "Location", url);
-    if (m_dc->bExpireRedirects == 1) {
+    if (m_dc->bExpireRedirects != 0) {
         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");
     }

-- 
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