Check if content-length exists then add it to make the logs cleaner.