When using the Warp connector, the read method of the stream returned by
request.getInputStream() would return negative numbers for bytes greater than 0xEF.
The attached patch fixes this problem.
--- WarpRequest.java Wed Jan 9 20:38:23 2002
+++ WarpRequest.java.new Wed Jan 9 20:36:00 2002
@@ -139,7 +139,7 @@
throw new IOException("Invalid WARP packet type for body");
if (this.packet.pointer<this.packet.size)
- return((int)this.packet.buffer[this.packet.pointer++]);
+ return((int)this.packet.buffer[this.packet.pointer++] & 0xFF);
this.packet.reset();
this.packet.setType(Constants.TYPE_CBK_READ);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>