mirror of
https://github.com/samba-team/samba.git
synced 2025-08-09 17:49:29 +03:00
Fix for swat to return correct MIME type for text files. From "Ron
Alexander" <rcalex@home.com>
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user