From b15deeff070bf7366ccd805b30887eef764e75ef Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Tue, 25 Jan 2011 20:13:41 +0000 Subject: [PATCH] Fixed bug introduced with the 8.3 filesystem support. If we use .htm instead of .html then we should also check for .htm instead of .html when it comes to MIME type setting. Interestingly this didn't show up when testing with Internet Explorer as that one just ignores the wrong MIME type and displays the HTML page as expected. Thanks to Shane Wood for pointing out the issue! --- apps/webserver/httpd-cfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/webserver/httpd-cfs.c b/apps/webserver/httpd-cfs.c index 627f6c086..fb6fb56b3 100644 --- a/apps/webserver/httpd-cfs.c +++ b/apps/webserver/httpd-cfs.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: httpd-cfs.c,v 1.25 2010/10/19 18:29:03 adamdunkels Exp $ + * $Id: httpd-cfs.c,v 1.26 2011/01/25 20:13:41 oliverschmidt Exp $ */ #include @@ -115,7 +115,7 @@ PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr)) ptr = strrchr(s->filename, ISO_period); if(ptr == NULL) { ptr = http_content_type_plain; - } else if(strcmp(http_html, ptr) == 0) { + } else if(strcmp(http_htm, ptr) == 0) { ptr = http_content_type_html; } else if(strcmp(http_css, ptr) == 0) { ptr = http_content_type_css;