jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
changeset 4047 f5dcf30f9206
parent 3952 dc329398de30
child 4150 74dfe4a968c6
child 4157 558590fb3b49
equal deleted inserted replaced
4038:ea7aa63169db 4047:f5dcf30f9206
  1178                     logger.fine(responses.toString());
  1178                     logger.fine(responses.toString());
  1179                 }
  1179                 }
  1180                 inputStream = http.getInputStream();
  1180                 inputStream = http.getInputStream();
  1181 
  1181 
  1182                 respCode = getResponseCode();
  1182                 respCode = getResponseCode();
       
  1183                 if (respCode == -1) {
       
  1184                     disconnectInternal();
       
  1185                     throw new IOException ("Invalid Http response");
       
  1186                 }
  1183                 if (respCode == HTTP_PROXY_AUTH) {
  1187                 if (respCode == HTTP_PROXY_AUTH) {
  1184                     if (streaming()) {
  1188                     if (streaming()) {
  1185                         disconnectInternal();
  1189                         disconnectInternal();
  1186                         throw new HttpRetryException (
  1190                         throw new HttpRetryException (
  1187                             RETRY_MSG1, HTTP_PROXY_AUTH);
  1191                             RETRY_MSG1, HTTP_PROXY_AUTH);