Check if content-length exists then add it to make the logs cleaner.
Added a basic test