[OLINGO-832] Fixed channel copy
This commit is contained in:
parent
69f58e84bf
commit
0cc2199437
|
@ -168,7 +168,7 @@ public class ODataHttpHandlerImpl implements ODataHttpHandler {
|
|||
while (input.read(inBuffer) > 0) {
|
||||
inBuffer.flip();
|
||||
output.write(inBuffer);
|
||||
inBuffer.rewind();
|
||||
inBuffer.clear();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new ODataRuntimeException("Error on reading request content", e);
|
||||
|
|
|
@ -71,6 +71,7 @@ public class ChannelSerializerResult implements SerializerResult {
|
|||
if(r <= dest.remaining()) {
|
||||
dest.put(buffer);
|
||||
} else {
|
||||
r = dest.remaining();
|
||||
byte[] buf = new byte[dest.remaining()];
|
||||
buffer.get(buf);
|
||||
dest.put(buf);
|
||||
|
|
Loading…
Reference in New Issue