uclient-http: set data_eof when content-length is 0
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 27 May 2019 02:31:57 +0000 (02:31 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Thu, 30 May 2019 10:32:35 +0000 (10:32 +0000)
commit3b3e368dead01979e985cb167873fe9868b15d19
treef937806509a289b9eb39182306380b421e716a82
parent3ba74ebc9363993ea2a83fd73b4c1b1a96e73940
uclient-http: set data_eof when content-length is 0

Otherwise uclient-fetch can report "Connection reset prematurely"

Fixes FS#2222

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Acked-by: Petr Štetiar <ynezz@true.cz>
uclient-http.c