libcli/http: Optimise reading for content-length