<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_msg">I&#39;ve got a fairly simplistic scenario (using 1.4.6.Final) where I&#39;m building an HTML String and then sending it to my exchange:<div class="gmail_msg"><br class="gmail_msg"></div><font face="monospace" class="gmail_msg">exchange.getResponseHeaders.put(Headers.CONTENT_LENGTH, html.length)<br class="gmail_msg">exchange.getResponseHeaders.put(Headers.CONTENT_TYPE, &quot;text/html&quot;)<br class="gmail_msg">exchange.getResponseSender.send(html)</font><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">However, very often the last one to three characters don&#39;t seem to be received by the browser.  I&#39;ve logged the HTML before outputting so I know that I&#39;m adding the &quot;&lt;/html&gt;&quot; at the end, but in order to get everything properly to the browser I have to append a few spaces to the end of my HTML so it doesn&#39;t get clipped.  Is there something I&#39;m missing that needs to be done to make sure the content is flushed appropriately?</div></div></div></div>