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!
This commit is contained in:
parent
faab7229c9
commit
b15deeff07
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $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 <stdio.h>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue