git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b35dc5
)
r19111: fixed basic web server operation
author
Andrew Tridgell
<tridge@samba.org>
Fri, 6 Oct 2006 05:36:29 +0000
(
05:36
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:35 +0000
(14:20 -0500)
(This used to be commit
290468ede533044ae2ea4dcdbb551fb776406c3e
)
source4/web_server/http.c
patch
|
blob
|
history
diff --git
a/source4/web_server/http.c
b/source4/web_server/http.c
index 44bda43964ffb872811c6d1fda90095ad423f96d..43da3c94168725b195d47d8686eaaf4a6c948b2b 100644
(file)
--- 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) {