From: Felix Fietkau Date: Sat, 23 Jan 2016 18:59:25 +0000 (+0100) Subject: http: assume data EOF if the connection terminates X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=commitdiff_plain;h=c35d9db9362e095553f2c043b1a2bf195435bc09;ds=inline http: assume data EOF if the connection terminates Signed-off-by: Felix Fietkau --- diff --git a/uclient-http.c b/uclient-http.c index e58cf27..5e5f996 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -192,6 +192,9 @@ static void uclient_notify_eof(struct uclient_http *uh) return; } + if (uh->content_length < 0 && uh->read_chunked >= 0) + uh->uc.data_eof = true; + uclient_backend_set_eof(&uh->uc); if (uh->connection_close)