]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Updated X-Accelerator-Vary with needed typecasts
authorhno <>
Sun, 9 Feb 2003 00:45:09 +0000 (00:45 +0000)
committerhno <>
Sun, 9 Feb 2003 00:45:09 +0000 (00:45 +0000)
src/store.cc

index d35617df1f24f3b96b330e68b0bf3cf2ea818306..4840796d1c5952667cbf40fadf1d959e98751443 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.557 2003/02/06 00:16:16 robertc Exp $
+ * $Id: store.cc,v 1.558 2003/02/08 17:45:09 hno Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -529,7 +529,8 @@ storeSetPublicKey(StoreEntry * e)
 #if X_ACCELERATOR_VARY
            vary = httpHeaderGetList(&mem->getReply()->header, HDR_X_ACCELERATOR_VARY);
            if (vary.buf()) {
-               httpHeaderPutStr(&pe->getReply()->header, HDR_X_ACCELERATOR_VARY, vary.buf());
+               /* Again, we own this structure layout */
+               httpHeaderPutStr((HttpHeader *)&pe->getReply()->header, HDR_X_ACCELERATOR_VARY, vary.buf());
                vary.clean();
            }
 #endif