libcli/http: Optimise reading for content-length
authorNoel Power <noel.power@suse.com>
Fri, 22 Mar 2024 08:55:49 +0000 (08:55 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Mar 2024 01:14:31 +0000 (01:14 +0000)
commit5f03d84e3b52bf5a31a0f885cb83bdcb48ec96f7
tree59584928122bccdeb4476f6942a7f8fcde3be54d
parent74cdebeae3d1bc35eea96b51b9491f6c52844b10
libcli/http: Optimise reading for content-length

Instead of reading byte-by-byte we know the content length we
want to read so lets use it.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15611
libcli/http/http.c