projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fetch: indicate an error if the connection was terminated prematurely
[project/uclient.git]
/
uclient-http.c
diff --git
a/uclient-http.c
b/uclient-http.c
index
ee161e6
..
9652fb8
100644
(file)
--- 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;
read_len += sep + 2 - data;
data = sep + 2;
- if (!uh->read_chunked)
+ if (!uh->read_chunked)
{
uh->eof = true;
uh->eof = true;
+ uh->uc.data_eof = true;
+ }
}
if (len > data_end - data)
}
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;
len = uh->content_length;
uh->content_length -= len;
- if (!uh->content_length)
+ if (!uh->content_length)
{
uh->eof = true;
uh->eof = true;
+ uh->uc.data_eof = true;
+ }
}
if (len > 0) {
}
if (len > 0) {