summaryrefslogtreecommitdiff
path: root/source4/web_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-06 05:36:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:35 -0500
commit53bb89680c0055b8d1d9b9448ff70072e0319926 (patch)
tree2a1dc338f02f166f9cb11ba65cebc44cda42f5c6 /source4/web_server
parent4b35dc53fe2530fd51427fe40dfb3c1dc2c4bc9b (diff)
downloadsamba-53bb89680c0055b8d1d9b9448ff70072e0319926.tar.gz
samba-53bb89680c0055b8d1d9b9448ff70072e0319926.tar.bz2
samba-53bb89680c0055b8d1d9b9448ff70072e0319926.zip
r19111: fixed basic web server operation
(This used to be commit 290468ede533044ae2ea4dcdbb551fb776406c3e)
Diffstat (limited to 'source4/web_server')
-rw-r--r--source4/web_server/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c
index 44bda43964..43da3c9416 100644
--- a/source4/web_server/http.c
+++ b/source4/web_server/http.c
@@ -896,6 +896,7 @@ void http_process_input(struct websrv_context *web)
p = strrchr(web->input.url, '.');
if (p == NULL) {
page_type = page_type_esp;
+ file_type = "text/html";
}
for (i=0;p && i<ARRAY_SIZE(mime_types);i++) {
if (strcmp(mime_types[i].extension, p+1) == 0) {