From d1c4b4968c1c3a364bcd7395d8e4678d4f50f7e2 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Tue, 6 Apr 2010 12:11:41 +0000 Subject: [PATCH] Added GIF support to the CFS web server (which was already present in the non-CFS web server). --- apps/webserver/httpd-cfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/webserver/httpd-cfs.c b/apps/webserver/httpd-cfs.c index ece5c196e..a1a56178b 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.17 2010/04/06 12:03:18 oliverschmidt Exp $ + * $Id: httpd-cfs.c,v 1.18 2010/04/06 12:11:41 oliverschmidt Exp $ */ #include @@ -114,6 +114,8 @@ PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr)) ptr = http_content_type_css; } else if(strcmp(http_png, ptr) == 0) { ptr = http_content_type_png; + } else if(strcmp(http_gif, ptr) == 0) { + ptr = http_content_type_gif; } else if(strcmp(http_jpg, ptr) == 0) { ptr = http_content_type_jpg; } else {