mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 05:44:59 +00:00
Thrift Transport: Uses wrong array offset into the underlying buffer, closes #1232.
This commit is contained in:
parent
0d07d5b91f
commit
83d15740a7
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user