1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix for swat to return correct MIME type for text files. From "Ron

Alexander" <rcalex@home.com>
(This used to be commit 061e5e5052)
This commit is contained in:
Tim Potter 2000-09-01 02:06:20 +00:00
parent fa810d4c80
commit e5e43b553e

View File

@ -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");
}