summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uclient-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c
index f16d29d..7a54cce 100644
--- a/uclient-http.c
+++ b/uclient-http.c
@@ -518,7 +518,7 @@ static void uclient_http_headers_complete(struct uclient_http *uh)
if (uh->uc.cb->header_done)
uh->uc.cb->header_done(&uh->uc);
- if (uh->req_type == REQ_HEAD) {
+ if (uh->req_type == REQ_HEAD || uh->uc.status_code == 204) {
uh->eof = true;
uclient_notify_eof(uh);
}