Index: HttpConnection.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v retrieving revision 1.67.2.2 diff -u -r1.67.2.2 HttpConnection.java --- HttpConnection.java 31 Jul 2003 17:59:17 -0000 1.67.2.2 +++ HttpConnection.java 5 Sep 2003 02:02:56 -0000 @@ -1133,24 +1133,24 @@ // no longer care about previous responses... lastResponseInputStream = null; - if (null != inputStream) { - InputStream temp = inputStream; - inputStream = null; + if (null != outputStream) { + OutputStream temp = outputStream; + outputStream = null; try { temp.close(); } catch (Exception ex) { - LOG.debug("Exception caught when closing input", ex); + LOG.debug("Exception caught when closing output", ex); // ignored } } - if (null != outputStream) { - OutputStream temp = outputStream; - outputStream = null; + if (null != inputStream) { + InputStream temp = inputStream; + inputStream = null; try { temp.close(); } catch (Exception ex) { - LOG.debug("Exception caught when closing output", ex); + LOG.debug("Exception caught when closing input", ex); // ignored } }