summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-26 10:55:29 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-26 10:55:29 +0000
commit46fcd85b2dbe32c0f78a9382f8c3e2db92416391 (patch)
treef6ee7c02a1c10c804c97eb2a59b3203946d046d3 /source3
parent4f2a6adb7cfee8de2c336cf926e29b720a1a8a47 (diff)
downloadsamba-46fcd85b2dbe32c0f78a9382f8c3e2db92416391.tar.gz
samba-46fcd85b2dbe32c0f78a9382f8c3e2db92416391.tar.bz2
samba-46fcd85b2dbe32c0f78a9382f8c3e2db92416391.zip
report ourselves as HTTP/1.0 not HTTP/1.1
(This used to be commit b2210614e810c8e84c9a14a8e32e05f95d92479b)
Diffstat (limited to 'source3')
-rw-r--r--source3/web/cgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index bf99a67a04..38be0de3c6 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -251,7 +251,7 @@ tell a browser about a fatal error in the http processing
***************************************************************************/
static void cgi_setup_error(char *err, char *header, char *info)
{
- printf("HTTP/1.1 %s\r\n%sConnection: close\r\nContent-Type: text/html\r\n\r\n<HTML><HEAD><TITLE>%s</TITLE></HEAD><BODY><H1>%s</H1>%s<p></BODY></HTML>\r\n", err, header, err, err, info);
+ printf("HTTP/1.0 %s\r\n%sConnection: close\r\nContent-Type: text/html\r\n\r\n<HTML><HEAD><TITLE>%s</TITLE></HEAD><BODY><H1>%s</H1>%s<p></BODY></HTML>\r\n", err, header, err, err, info);
exit(0);
}
@@ -349,7 +349,7 @@ static void cgi_download(char *file)
cgi_setup_error("404 File Not Found","",
"The requested file was not found");
}
- printf("HTTP/1.1 200 OK\r\n");
+ printf("HTTP/1.0 200 OK\r\n");
if ((p=strrchr(file,'.'))) {
if (strcmp(p,".gif")==0) {
printf("Content-Type: image/gif\r\n");
@@ -458,7 +458,7 @@ void cgi_setup(char *rootdir, int auth_required)
cgi_download(url);
}
- printf("HTTP/1.1 200 OK\r\nConnection: close\r\n");
+ printf("HTTP/1.0 200 OK\r\nConnection: close\r\n");
printf("Date: %s\r\n", http_timestring(time(NULL)));
baseurl = "";
pathinfo = url+1;