#
-# $Id: cf.data.pre,v 1.347 2004/04/04 15:05:13 hno Exp $
+# $Id: cf.data.pre,v 1.348 2004/04/04 23:17:48 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
@DEFAULT_ICON_DIR@
DOC_END
+NAME: short_icon_urls
+TYPE: onoff
+LOC: Config.icons.use_short_names
+DEFAULT: on
+DOC_START
+ If this is enabled then Squid will use short URLs for icons.
+ If disabled it will revert to the old behaviour of including
+ it's own name and port in the URL.
+
+ If you run a complex cache hierarchy with a mix of Squid and
+ other proxies then you may need to disable this directive.
+DOC_END
+
NAME: error_directory
TYPE: string
LOC: Config.errorDirectory
/*
- * $Id: client_side.cc,v 1.669 2004/03/01 01:37:34 adrian Exp $
+ * $Id: client_side.cc,v 1.670 2004/04/04 23:21:53 hno Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
http->flags.internal = 1;
}
}
+
+ if (http->flags.internal)
+ request->protocol = PROTO_HTTP;
}
request->flags.internal = http->flags.internal;
/*
- * $Id: mime.cc,v 1.114 2003/09/01 03:49:39 robertc Exp $
+ * $Id: mime.cc,v 1.115 2004/04/04 23:17:48 hno Exp $
*
* DEBUG: section 25 MIME Parsing
* AUTHOR: Harvest Derived
const char *
mimeGetIconURL(const char *fn)
{
+ static MemBuf mb = MemBufNULL;
char const *icon = mimeGetIcon(fn);
if (icon == NULL)
return null_string;
- return internalLocalUri("/squid-internal-static/icons/", icon);
+ if (Config.icons.use_short_names) {
+ memBufReset(&mb);
+ memBufPrintf(&mb, "/squid-internal-static/icons/%s", icon);
+ return mb.buf;
+ } else {
+ return internalLocalUri("/squid-internal-static/icons/", icon);
+ }
}
char *
/*
- * $Id: structs.h,v 1.486 2004/04/04 15:05:13 hno Exp $
+ * $Id: structs.h,v 1.487 2004/04/04 23:17:48 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
struct
{
char *directory;
+ int use_short_names;
}
icons;