1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

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

Alexander" <rcalex@home.com>
This commit is contained in:
Tim Potter -
parent 596c21a2af
commit 061e5e5052

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