From 7507ca01b491495d199da5d4779518a0dccb65cd Mon Sep 17 00:00:00 2001 From: rousskov <> Date: Fri, 22 May 1998 11:19:09 +0000 Subject: [PATCH] - httpMsgIsPersistent() is now checks for both "Mozilla" and "Netscape" agents. --- src/HttpReply.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpReply.cc b/src/HttpReply.cc index 10d521842f..5308d0e142 100644 --- a/src/HttpReply.cc +++ b/src/HttpReply.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpReply.cc,v 1.19 1998/05/22 05:02:38 rousskov Exp $ + * $Id: HttpReply.cc,v 1.20 1998/05/22 05:19:09 rousskov Exp $ * * DEBUG: section 58 HTTP Reply (Response) * AUTHOR: Alex Rousskov @@ -421,7 +421,7 @@ httpMsgIsPersistent(float http_ver, const HttpHeader *hdr) } else { /* pconns in Netscape 3.x are allegedly broken, return false */ const char *agent = httpHeaderGetStr(hdr, HDR_USER_AGENT); - if (agent && !strncasecmp(agent, "Mozilla/3.", 10)) + if (agent && (!strncasecmp(agent, "Mozilla/3.", 10) || !strncasecmp(agent, "Netscape/3.", 11))) return 0; /* for old versions of HTTP: persistent if has "keep-alive" */ return httpHeaderHasConnDir(hdr, "keep-alive"); -- 2.47.3