diff options
author | Jeremy Allison <jra@samba.org> | 2005-07-08 04:51:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:58:18 -0500 |
commit | c7fe18761e2c753afbffd3a78abff46472a9b8eb (patch) | |
tree | f60b3a473919fe3a6294822226bd950b8d832c70 /source/web/cgi.c | |
parent | 053e892e07936f6b71a6bb5e31be09c1d2a2c837 (diff) | |
download | samba-c7fe18761e2c753afbffd3a78abff46472a9b8eb.tar.gz samba-c7fe18761e2c753afbffd3a78abff46472a9b8eb.tar.xz samba-c7fe18761e2c753afbffd3a78abff46472a9b8eb.zip |
r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the torture
tests on this as it's very late NY time (just wanted to get this work
into the tree). I'll test this over the weekend....
Jerry - in looking at the difference between the two trees there
seem to be some printing/ntprinting.c and registry changes we might
want to examine to try keep in sync.
Jeremy.
Diffstat (limited to 'source/web/cgi.c')
-rw-r--r-- | source/web/cgi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c index 5d52ad62793..6c9cfce13cd 100644 --- a/source/web/cgi.c +++ b/source/web/cgi.c @@ -457,6 +457,10 @@ 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,".png")==0) { + printf("Content-Type: image/png\r\n"); + } else if (strcmp(p,".css")==0) { + printf("Content-Type: text/css\r\n"); } else if (strcmp(p,".txt")==0) { printf("Content-Type: text/plain\r\n"); } else { |