I noticed the following and am not sure if it is correct:
+ public static String readLine(InputStream inputStream) throws IOException {
+ LOG.trace("enter HttpConnection.readLine()");
+ byte[] rawdata = readRawLine(inputStream);
+ if ((rawdata.length >= 2) && (rawdata[0] == '\r') && (rawdata[1] == '\n')) {
+ return HttpConstants.getString(rawdata, 0, rawdata.length - 2);
+ } else {
+ return HttpConstants.getString(rawdata);
+ }
+ }
It looks like you're stripping \r\n from the beginning of the line, but I was thinking you want to remove it from the end. Is this correct?
Mike
On Thursday, February 13, 2003, at 05:44 PM, Oleg Kalnichevski wrote:
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]