]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
missed a new urlInternal
authorwessels <>
Fri, 10 Apr 1998 06:51:04 +0000 (06:51 +0000)
committerwessels <>
Fri, 10 Apr 1998 06:51:04 +0000 (06:51 +0000)
src/mime.cc

index 9b8542de77bae83ac6ccdc046512a22d0ea85e4a..b6454f6d8552c50ca029fd04e4f82ab64f7ec4d2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: mime.cc,v 1.61 1998/04/06 22:24:04 wessels Exp $
+ * $Id: mime.cc,v 1.62 1998/04/10 00:51:04 wessels Exp $
  *
  * DEBUG: section 25    MIME Parsing
  * AUTHOR: Harvest Derived
@@ -487,8 +487,7 @@ mimeLoadIconFile(const char *icon)
     const char *type = mimeGetContentType(icon);
     if (type == NULL)
        fatal("Unknown icon format while reading mime.conf\n");
-    snprintf(url, MAX_URL, "http://%s:%d/squid-internal/icons/%s",
-       getMyHostname(), Config.Port.http->i, icon);
+    xstrncpy(url, urlInternal("icons",icon), MAX_URL);
     key = storeKeyPublic(url, METHOD_GET);
     if (storeGet(key))
        return;