Thrift Transport: Uses wrong array offset into the underlying buffer, closes #1232.

This commit is contained in:
Shay Banon 2011-08-11 15:30:16 +03:00
parent 0d07d5b91f
commit 83d15740a7

View File

@ -96,7 +96,7 @@ public class ThriftRestRequest extends AbstractRestRequest implements org.elasti
if (!request.isSetBody()) {
return 0;
}
return request.bufferForBody().arrayOffset();
return request.bufferForBody().arrayOffset() + request.bufferForBody().position();
}
@Override public int contentLength() {