Lines 1-12
Link Here
|
1 |
--- types.c.orig Sat Mar 1 19:06:39 2003 |
1 |
--- types.c.orig Thu Mar 24 10:36:47 2005 |
2 |
+++ types.c Sat Mar 1 19:07:45 2003 |
2 |
+++ types.c Thu Mar 24 10:38:12 2005 |
3 |
@@ -705,7 +705,8 @@ |
3 |
@@ -796,7 +796,8 @@ |
4 |
if (*ct == '.') ext = ct + 1; |
4 |
if (*ct == '.') ext = ct + 1; |
5 |
else if (dir_sep(*ct)) ext = NULL; |
5 |
else if (dir_sep(*ct)) ext = NULL; |
6 |
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(url, ext[extl])) extl++; |
7 |
- if ((extl == 3 && !casecmp(ext, "htm", 3)) || |
7 |
- if ((extl == 3 && !casecmp(ext, "htm", 3)) || |
8 |
+ if (force_html || |
8 |
+ if (force_html || |
9 |
+ (extl == 3 && !casecmp(ext, "htm", 3)) || |
9 |
+ (extl == 3 && !casecmp(ext, "htm", 3)) || |
10 |
(extl == 4 && !casecmp(ext, "html", 4))) return stracpy("text/html"); |
10 |
(extl == 4 && !casecmp(ext, "html", 4))) return stracpy("text/html"); |
11 |
foreach(e, extensions) if (is_in_list(e->ext, ext, extl)) return stracpy(e->ct); |
11 |
foreach(e, extensions) { |
12 |
|
12 |
unsigned char *fname = NULL; |