jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
changeset 5979 26b9b2b1b37b
parent 5506 202f599c92aa
child 6873 7fe1f614001e
child 6292 9da761dff0c7
--- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Thu Jun 24 14:26:35 2010 +0800
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Mon Jun 28 14:55:25 2010 +0100
@@ -2331,7 +2331,7 @@
      * closed the connection to the web server.
      */
     private void disconnectWeb() throws IOException {
-        if (usingProxy()) {
+        if (usingProxy() && http.isKeepingAlive()) {
             responseCode = -1;
             // clean up, particularly, skip the content part
             // of a 401 error response