...it will return a response that has some extra characters added to the top and bottom. You won't typically see them, most browsers ignore them, but you can see them if you use wget from the command line to get the page. If you drop the response down to 8000 characters or less, the extra characters go away and you get the output you would expect. If you put the same code in /public/output_test.php you will not get the extra characters, so it is definitely something that Akelos is doing while assembling the response. I tried using renderText and changing Content-Type with no luck.
It's not such a big deal for HTML output, but this causes a BIG problem when outputting XML because it will invalidate the XML and prevent a lot of folks from seeing it.
Does anyone know why is it happening and what can be done to fix it?
CommentAuthorbermi
HTTP 1.0 clients need to know when the content has been completely sent and Akelos did not send Content-Length implicitly. See some content length facts.