diff options
-rw-r--r-- | uclient-http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c index 3168f4c..c1f7228 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -199,7 +199,8 @@ static void uclient_notify_eof(struct uclient_http *uh) return; } - if (uh->content_length < 0 && uh->read_chunked >= 0) + if ((uh->content_length < 0 && uh->read_chunked >= 0) || + uh->content_length == 0) uh->uc.data_eof = true; uclient_backend_set_eof(&uh->uc); |