Redirect headers have to be in err_headers_out.
authorScott Cantor <cantor.2@osu.edu>
Thu, 30 Jun 2011 21:57:29 +0000 (21:57 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 30 Jun 2011 21:57:29 +0000 (21:57 +0000)
apache/mod_apache.cpp

index 9ed5159..0b72e37 100644 (file)
@@ -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->headers_out, "Expires", "01-Jan-1997 12:00:00 GMT");
-        ap_table_set(m_req->headers_out, "Cache-Control", "private,no-store,no-cache");
+        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");
     }
     return REDIRECT;
   }