From 960c03b8acfd52083ba16632e59523e605aa12cf Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 28 Oct 2013 10:14:12 +1100 Subject: [PATCH] 419350 Do not borrow space from passed arrays --- .../src/main/java/org/eclipse/jetty/server/HttpOutput.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java index 968a5a00406..5f17d0205f3 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java @@ -300,12 +300,14 @@ public class HttpOutput extends ServletOutputStream /* ------------------------------------------------------------ */ /** Blocking send of content. - * @param content The content to send + * @param content The content to send. * @throws IOException */ public void sendContent(ByteBuffer content) throws IOException { final BlockingCallback callback =_channel.getWriteBlockingCallback(); + if (content.hasArray()&&content.limit()