Added Content-Length header where applicable