/*
- * $Id: HttpReply.cc,v 1.20 1998/05/22 05:19:09 rousskov Exp $
+ * $Id: HttpReply.cc,v 1.21 1998/05/22 22:29:59 rousskov Exp $
*
* DEBUG: section 58 HTTP Reply (Response)
* AUTHOR: Alex Rousskov
/* for modern versions of HTTP: persistent if not "close"d */
return !httpHeaderHasConnDir(hdr, "close");
} else {
- /* pconns in Netscape 3.x are allegedly broken, return false */
+ /* pconns in Netscape 3.x are allegedly broken, return false
+ * if it is a client connection */
const char *agent = httpHeaderGetStr(hdr, HDR_USER_AGENT);
- if (agent && (!strncasecmp(agent, "Mozilla/3.", 10) || !strncasecmp(agent, "Netscape/3.", 11)))
+ if (agent && !httpHeaderHas(hdr, HDR_VIA) &&
+ (!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");