? HttpClient 2.0.iml ? HttpClient 2.0.ipr ? HttpClient 2.0.iws ? connclose.patch Index: src/java/org/apache/commons/httpclient/HttpMethodBase.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v retrieving revision 1.159.2.33 diff -u -r1.159.2.33 HttpMethodBase.java --- src/java/org/apache/commons/httpclient/HttpMethodBase.java 10 Oct 2004 00:00:35 -0000 1.159.2.33 +++ src/java/org/apache/commons/httpclient/HttpMethodBase.java 9 Jul 2005 23:28:06 -0000 @@ -906,6 +906,11 @@ if (connectionHeader == null) { connectionHeader = responseHeaders.getFirstHeader("connection"); } + // In case the response does not contain any explict connection + // directives, check whether the request does + if (connectionHeader == null) { + connectionHeader = requestHeaders.getFirstHeader("connection"); + } if (connectionHeader != null) { if (connectionHeader.getValue().equalsIgnoreCase("close")) { if (LOG.isDebugEnabled()) {