propogate my cgi changes to the main branch
authorAndrew Tridgell <tridge@samba.org>
Mon, 12 Jan 1998 00:32:27 +0000 (00:32 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 12 Jan 1998 00:32:27 +0000 (00:32 +0000)
source/cgi.c
source/web/cgi.c
source/wsmbconf.c

index f165c56110b5e259c71ed0b7fafbf4a50973cc72..e697f5537a3f1398938785a21f8bcc9277329e0d 100644 (file)
@@ -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");
        
 }
 
index f165c56110b5e259c71ed0b7fafbf4a50973cc72..e697f5537a3f1398938785a21f8bcc9277329e0d 100644 (file)
@@ -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");
        
 }
 
index 8abdd6d3985a779ee0eed53f92d2747a0c6411e4..b3bfe6aa50687370acea16bd641cbc1a2ecf3d9e 100644 (file)
@@ -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");
 }