summaryrefslogtreecommitdiff
path: root/source/web
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
commit061e5e50523913a26bc86bd816c4e26a37a832c7 (patch)
tree068f83173466b0e90736ac324b422da30a9a6ea6 /source/web
parent596c21a2af0309ce43a5e52a343a671036d05ebf (diff)
downloadsamba-061e5e50523913a26bc86bd816c4e26a37a832c7.tar.gz
Fix for swat to return correct MIME type for text files. From "Ron
Alexander" <rcalex@home.com>
Diffstat (limited to 'source/web')
-rw-r--r--source/web/cgi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c
index ea73a0f1a70..4f44d10afcd 100644
--- a/source/web/cgi.c
+++ b/source/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");
}