summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hittpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c
index d38f9a9..e5114d6 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -467,7 +467,8 @@ getmime(const char *mime, char *ext)
 	const char *c = mime;
 
 	do {
-		c++;
+		if (*c == ':')
+			c++;
 		if (strncmp(c, ext, extlen) == 0 && c[extlen] == '=')
 			return c + extlen + 1;
 	} while ((c = strchr(c, ':')));