character of line.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99794
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-05-16 Tom Tromey <tromey@redhat.com>
+
+ * gnu/java/net/protocol/http/Headers.java (parse): Include final
+ character of line.
+
2005-05-16 Tom Tromey <tromey@redhat.com>
PR libgcj/21606:
if (c1 == ' ' || c1 == '\t')
{
// Continuation
- value.append(line.substring(0, len - 1));
+ int last = len - 1;
+ if (line.charAt(last) != '\r')
+ ++last;
+ value.append(line.substring(0, last));
}
else
{
di++;
}
while (di < len && line.charAt(di) == ' ');
- value.append(line.substring(di, len - 1));
+ int last = len - 1;
+ if (line.charAt(last) != '\r')
+ ++last;
+ value.append(line.substring(di, last));
}
}
}