Untested class for adjusting Content-Length

Try to adjust the Content-Length header to take into account the
injected html code. I don't know if it may work ;)