Set Content-Length only if not set already
Only get body in a request if wanted
More fixes for file.py