From c62815be3cacbea56e50d3925f6f75ae759950dc Mon Sep 17 00:00:00 2001 From: wessels <> Date: Mon, 1 Dec 1997 12:34:55 +0000 Subject: [PATCH] fix keep alive connection request header for non-proxy connections --- src/client.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client.cc b/src/client.cc index d05ccd4374..ee78c5b4d5 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1,7 +1,7 @@ /* - * $Id: client.cc,v 1.43 1997/11/28 08:02:31 wessels Exp $ + * $Id: client.cc,v 1.44 1997/12/01 05:34:55 wessels Exp $ * * DEBUG: section 0 WWW Client * AUTHOR: Harvest Derived @@ -243,7 +243,10 @@ main(int argc, char *argv[]) strcat(msg, buf); } if (keep_alive) { - snprintf(buf, BUFSIZ, "Proxy-Connection: Keep-Alive\r\n"); + if (port != 80) + snprintf(buf, BUFSIZ, "Proxy-Connection: Keep-Alive\r\n"); + else + snprintf(buf, BUFSIZ, "Connection: Keep-Alive\r\n"); strcat(msg, buf); } snprintf(buf, BUFSIZ, "\r\n"); -- 2.47.3