summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-09-01 02:06:20 +0000
committerTim Potter <tpot@samba.org>2000-09-01 02:06:20 +0000
commite5e43b553ee12af1add965804dc32d63f5fa2f1e (patch)
tree30b8d239e23762fe263dd774c87c928ad034ed73 /source3
parentfa810d4c8001c10bddce452b4ab1178eb80dee87 (diff)
downloadsamba-e5e43b553ee12af1add965804dc32d63f5fa2f1e.tar.gz
samba-e5e43b553ee12af1add965804dc32d63f5fa2f1e.tar.bz2
samba-e5e43b553ee12af1add965804dc32d63f5fa2f1e.zip
Fix for swat to return correct MIME type for text files. From "Ron
Alexander" <rcalex@home.com> (This used to be commit 061e5e50523913a26bc86bd816c4e26a37a832c7)
Diffstat (limited to 'source3')
-rw-r--r--source3/web/cgi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index ea73a0f1a7..4f44d10afc 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -451,6 +451,8 @@ static void cgi_download(char *file)
printf("Content-Type: image/gif\r\n");
} else if (strcmp(p,".jpg")==0) {
printf("Content-Type: image/jpeg\r\n");
+ } else if (strcmp(p,".txt")==0) {
+ printf("Content-Type: text/plain\r\n");
} else {
printf("Content-Type: text/html\r\n");
}