Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/rmi/transport/proxy/HttpSendSocket.java
          +++ new/src/share/classes/sun/rmi/transport/proxy/HttpSendSocket.java
↓ open down ↓ 195 lines elided ↑ open up ↑
 196  196                  if (contentType == null) {
 197  197                      message = "missing content type in response" +
 198  198                          lineSeparator;
 199  199                  } else {
 200  200                      message = "invalid content type in response: " +
 201  201                          contentType + lineSeparator;
 202  202                  }
 203  203  
 204  204                  message += "HttpSendSocket.readNotify: response body: ";
 205  205                  try {
 206      -                    DataInputStream din = new DataInputStream(in);
      206 +                    BufferedReader din = new BufferedReader(new InputStreamReader(in));
 207  207                      String line;
 208  208                      while ((line = din.readLine()) != null)
 209  209                          message += line + lineSeparator;
 210  210                  } catch (IOException e) {
 211  211                  }
 212  212                  RMIMasterSocketFactory.proxyLog.log(Log.BRIEF, message);
 213  213              }
 214  214  
 215  215              throw new IOException("HTTP request failed");
 216  216          }
↓ open down ↓ 127 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX