Ensure Content-Length header is set properly

Seeing some issues with `Content-Length` being corrupted, this ensures it matches body length as delivered.