]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/mime_parser.c
Rounded buttons under IE using CSS3PIE (not working yet)
[citadel.git] / libcitadel / lib / mime_parser.c
index 765188c011bbe03a08459947ba64059e1c799cac..43f499838cd6410a07b4f6ef7c7b6408a2604a2a 100644 (file)
@@ -1,9 +1,7 @@
 /*
- * $Id$
- *
  * This is the MIME parser for Citadel.
  *
- * Copyright (c) 1998-2007 by the citadel.org development team.
+ * Copyright (c) 1998-2010 by the citadel.org development team.
  * This code is distributed under the GNU General Public License v3.
  *
  */
@@ -675,6 +673,8 @@ const char* GuessMimeByFilename(const char *what, size_t len)
                return "text/plain";
        else if ((len > 3) && !strncasecmp(&what[len - 4], ".css", 4))
                return "text/css";
+       else if ((len > 3) && !strncasecmp(&what[len - 4], ".htc", 4))
+               return "text/x-component";
        else if ((len > 3) && !strncasecmp(&what[len - 4], ".jpg", 4))
                return "image/jpeg";
        else if ((len > 3) && !strncasecmp(&what[len - 4], ".png", 4))