Ignore:
Timestamp:
2012-12-30T23:56:54+01:00 (11 years ago)
Author:
simon04
Message:

remotecontrol: stop reading request if end of input stream is reached

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java

    r5189 r5651  
    142142            while (requestLine.length() < 1024 * 1024) {
    143143                int c = in.read();
    144                 if (c == '\r' || c == '\n')
     144                if (c == -1 || c == '\r' || c == '\n')
    145145                    break;
    146146                requestLine.append((char) c);
Note: See TracChangeset for help on using the changeset viewer.