Provide content-length header if response has a body

This change adds a content-length header in case the response has a body. This allows keep-alive/pipelined http connections with php applications using flight.