diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-01-11 15:19:50 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-01-11 15:19:50 +0000 |
commit | 45bb4e6d444b3415effe922a424adb418cd8362d (patch) | |
tree | 8f7844ce0a4d5b2e2e912522de3e6a7373da8124 | |
parent | 975336d82ca775ce0de7f964e6ef365c4499360e (diff) | |
download | samba-45bb4e6d444b3415effe922a424adb418cd8362d.tar.gz samba-45bb4e6d444b3415effe922a424adb418cd8362d.tar.xz samba-45bb4e6d444b3415effe922a424adb418cd8362d.zip |
fix up the CGI headers when run as a cgi script
-rw-r--r-- | source/cgi.c | 2 | ||||
-rw-r--r-- | source/web/cgi.c | 2 | ||||
-rw-r--r-- | source/wsmbconf.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/source/cgi.c b/source/cgi.c index f165c56110b..e697f5537a3 100644 --- a/source/cgi.c +++ b/source/cgi.c @@ -614,7 +614,7 @@ void cgi_setup(char *rootdir) cgi_download(url+1); } - printf("HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n"); + printf("HTTP/1.1 200 OK\r\nConnection: close\r\n"); } diff --git a/source/web/cgi.c b/source/web/cgi.c index f165c56110b..e697f5537a3 100644 --- a/source/web/cgi.c +++ b/source/web/cgi.c @@ -614,7 +614,7 @@ void cgi_setup(char *rootdir) cgi_download(url+1); } - printf("HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n"); + printf("HTTP/1.1 200 OK\r\nConnection: close\r\n"); } diff --git a/source/wsmbconf.c b/source/wsmbconf.c index 8abdd6d3985..b3bfe6aa506 100644 --- a/source/wsmbconf.c +++ b/source/wsmbconf.c @@ -37,6 +37,7 @@ static pstring servicesf = CONFIGFILE; /* start the page with standard stuff */ static void print_header(void) { + printf("Content-type: text/html\r\n\r\n"); printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n"); printf("<HTML>\n<HEAD>\n<TITLE>smb.conf</TITLE>\n</HEAD>\n<BODY>\n\n"); } |