]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/StoreMetaVary.cc
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 20 Storage Manager Swapfile Metadata */
12 #include "MemObject.h"
14 #include "StoreMetaVary.h"
17 StoreMetaVary::checkConsistency(StoreEntry
*e
) const
19 assert (getType() == STORE_META_VARY_HEADERS
);
21 if (!e
->mem_obj
->vary_headers
) {
22 /* XXX separate this mutator from the query */
23 /* Assume the object is OK.. remember the vary request headers */
24 e
->mem_obj
->vary_headers
= xstrdup((char *)value
);
28 if (strcmp(e
->mem_obj
->vary_headers
, (char *)value
) != 0)