static void free_all(void);
void requirePathnameExists(const char *name, const char *path);
static OBJH dump_config;
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
static void dump_http_header_access(StoreEntry * entry, const char *name, header_mangler header[]);
static void parse_http_header_access(header_mangler header[]);
static void free_http_header_access(header_mangler header[]);
if (Config.errorDirectory)
requirePathnameExists("Error Directory", Config.errorDirectory);
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
{
const refresh_t *R;
}
#endif
-#if !HTTP_VIOLATIONS
+#if !USE_HTTP_VIOLATIONS
Config.onoff.via = 1;
#else
#endif
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
static void
dump_http_header_access(StoreEntry * entry, const char *name, header_mangler header[])
{
if (head->flags.store_stale)
storeAppendPrintf(entry, " store-stale");
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
if (head->flags.override_expire)
storeAppendPrintf(entry, " override-expire");
int refresh_ims = 0;
int store_stale = 0;
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
int override_expire = 0;
int override_lastmod = 0;
refresh_ims = 1;
} else if (!strcmp(token, "store-stale")) {
store_stale = 1;
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
} else if (!strcmp(token, "override-expire"))
override_expire = 1;
if (store_stale)
t->flags.store_stale = 1;
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
if (override_expire)
t->flags.override_expire = 1;
safe_free(t);
}
-#if HTTP_VIOLATIONS
+#if USE_HTTP_VIOLATIONS
refresh_nocache_hack = 0;
#endif
}
s->allow_direct = 1;
} else if (strcmp(token, "ignore-cc") == 0) {
-#if !HTTP_VIOLATIONS
+#if !USE_HTTP_VIOLATIONS
if (!s->accel) {
debugs(3, DBG_CRITICAL, "FATAL: http(s)_port: ignore-cc option requires Scceleration mode flag.");
self_destruct();