Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/rmi/transport/proxy/HttpInputStream.java
          +++ new/src/share/classes/sun/rmi/transport/proxy/HttpInputStream.java
↓ open down ↓ 62 lines elided ↑ open up ↑
  63   63  
  64   64              if (RMIMasterSocketFactory.proxyLog.isLoggable(Log.VERBOSE)) {
  65   65                  RMIMasterSocketFactory.proxyLog.log(Log.VERBOSE,
  66   66                      "received header line: \"" + line + "\"");
  67   67              }
  68   68  
  69   69              if (line == null)
  70   70                  throw new EOFException();
  71   71  
  72   72              if (line.toLowerCase().startsWith(key)) {
  73      -                if (contentLengthFound)
  74      -                    ; // what would we want to do in this case??
       73 +                // if contentLengthFound is true
       74 +                // we should probably do something here
  75   75                  bytesLeft =
  76   76                      Integer.parseInt(line.substring(key.length()).trim());
  77   77                  contentLengthFound = true;
  78   78              }
  79   79  
  80   80              // The idea here is to go past the first blank line.
  81   81              // Some DataInputStream.readLine() documentation specifies that
  82   82              // it does include the line-terminating character(s) in the
  83   83              // returned string, but it actually doesn't, so we'll cover
  84   84              // all cases here...
↓ open down ↓ 117 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX