Turn redirect expiration on by default.
authorscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 6 Jul 2011 17:34:24 +0000 (17:34 +0000)
committerscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 6 Jul 2011 17:34:24 +0000 (17:34 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3494 cb58f699-b61c-0410-a6fe-9272a202ed29

apache/mod_apache.cpp

index 57ae0aa..8f04472 100644 (file)
@@ -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");
     }