X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-http.c;h=9652fb8f7cd9a9d5457a44522fddb5b919e16ba9;hp=ee161e6bd21507f946cc97dddc39dedcecf41ab7;hb=9ceca0a12166cefdf07aedc3c187fdd2f72fdec8;hpb=3a61c3f4a8820def50e7fbe68e31a07648102eca;ds=sidebyside diff --git a/uclient-http.c b/uclient-http.c index ee161e6..9652fb8 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -928,8 +928,10 @@ uclient_http_read(struct uclient *cl, char *buf, unsigned int len) read_len += sep + 2 - data; data = sep + 2; - if (!uh->read_chunked) + if (!uh->read_chunked) { uh->eof = true; + uh->uc.data_eof = true; + } } if (len > data_end - data) @@ -945,8 +947,10 @@ uclient_http_read(struct uclient *cl, char *buf, unsigned int len) len = uh->content_length; uh->content_length -= len; - if (!uh->content_length) + if (!uh->content_length) { uh->eof = true; + uh->uc.data_eof = true; + } } if (len > 0) {