diff -r c22bf553c819 -r d7fb0809c7e4 jdk/src/share/classes/sun/net/httpserver/Request.java --- a/jdk/src/share/classes/sun/net/httpserver/Request.java Fri Mar 06 12:40:38 2009 +0300 +++ b/jdk/src/share/classes/sun/net/httpserver/Request.java Tue Mar 10 03:18:22 2009 -0700 @@ -52,6 +52,9 @@ os = rawout; do { startLine = readLine(); + if (startLine == null) { + return; + } /* skip blank lines */ } while (startLine.equals ("")); }