fix got-fetch-http when chunked encoding is not usedmain
commita0769bb1e683876bd26ba4c2cc83e3e35db8111f
authorStefan Sperling <stsp@stsp.name>
Thu, 25 Apr 2024 19:39:53 +0000 (25 19:39 +0000)
committerStefan Sperling <stsp@stsp.name>
Thu, 25 Apr 2024 19:39:53 +0000 (25 19:39 +0000)
tree1b7185ba22c07663d61f6f7e9007210577e31cfc
parent9e2d05155fd66ac528765af1d592aea55ba4fe78
fix got-fetch-http when chunked encoding is not used

We would end up raising a spurious error when the server had no more data
to send and would abort the clone operation, while everything was fine in
fact.

Problem reported by vazub via IRC, thanks!
libexec/got-fetch-http/got-fetch-http.c