X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-http.c;h=5e5f9961e20d6ffc56de980123f1e2d35862c53a;hp=e58cf274b3a6cef5b06929462c7638f3d648afa1;hb=c35d9db9362e095553f2c043b1a2bf195435bc09;hpb=07b4860975bd919fc8a8ce75d14ca8216eab70aa 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)