<div dir="ltr">Well, I just added an IoCallback and now I&#39;m getting an error: Attempted to write 144780 bytes however content-length has been set to 144772<div><br></div><div>This, I think, raises both a question and an issue:</div><div><br></div><div>Question: Should I not be setting the Content-Length myself even when using exchange.getResponseSender().send?</div><div>Issue: Seems like a bug that without an IoCallback the error is just absorbed and never logged anywhere.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 8, 2017 at 10:35 AM Hicks, Matt &lt;<a href="mailto:matt@matthicks.com">matt@matthicks.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">I&#39;m having a very strange problem sending a generated HTML file back to the browser using `exchange.getResponseSender().send(s)`.  It seems to work fine if the content is a short bit of text like &quot;Hello World&quot;, but the content is 144,772 bytes and if I use Curl to test it I get a 200 OK, but it says the Content-Length is 0 and no content comes back.  If I set the content to a short String like I said, then the Content-Length is properly set and the content comes back like expected.<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Should I not be using `exchange.getResponseSender().send` for large amounts of text?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I just updated to 1.4.10.Final hoping that it was a bug that was fixed since 1.4.8.Final, but it&#39;s still happening.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Any insights would be greatly appreciated.</div></div></blockquote></div>