Fixed issue with the Content-Length header
Code cleaning