Fix slow downloads because of Content-Length mismatch