From: wessels <> Date: Mon, 1 Dec 1997 12:34:55 +0000 (+0000) Subject: fix keep alive connection request header for non-proxy connections X-Git-Tag: SQUID_3_0_PRE1~4438 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c62815be3cacbea56e50d3925f6f75ae759950dc;p=thirdparty%2Fsquid.git fix keep alive connection request header for non-proxy connections --- 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");