|
Lines 1-6
Link Here
|
| 1 |
--- types.c.orig Fri Apr 26 09:11:15 2002 |
1 |
--- types.c.orig 2011-11-16 19:19:29 UTC |
| 2 |
+++ types.c Fri Apr 26 09:12:27 2002 |
2 |
+++ types.c |
| 3 |
@@ -66,5 +66,6 @@ |
3 |
@@ -66,7 +66,8 @@ unsigned char *get_content_type(unsigned |
|
|
4 |
if (*ct == '.') ext = ct + 1; |
| 4 |
else if (dir_sep(*ct)) ext = NULL; |
5 |
else if (dir_sep(*ct)) ext = NULL; |
| 5 |
if (ext) while (ext[extl] && !dir_sep(ext[extl]) && !end_of_dir(ext[extl])) extl++; |
6 |
if (ext) while (ext[extl] && !dir_sep(ext[extl]) && !end_of_dir(ext[extl])) extl++; |
| 6 |
- if ((extl == 3 && !casecmp(ext, "htm", 3)) || |
7 |
- if ((extl == 3 && !casecmp(ext, "htm", 3)) || |
|
Lines 8-10
Link Here
|
| 8 |
+ (extl == 3 && !casecmp(ext, "htm", 3)) || |
9 |
+ (extl == 3 && !casecmp(ext, "htm", 3)) || |
| 9 |
(extl == 4 && !casecmp(ext, "html", 4))) return stracpy("text/html"); |
10 |
(extl == 4 && !casecmp(ext, "html", 4))) return stracpy("text/html"); |
| 10 |
foreach(e, extensions) if (is_in_list(e->ext, ext, extl)) return stracpy(e->ct); |
11 |
foreach(e, extensions) if (is_in_list(e->ext, ext, extl)) return stracpy(e->ct); |
|
|
12 |
exxt = init_str(); el = 0; |