Fix XHR server side to actually write a response for chunked output.