From 1c94253d3764e4e32cffa8703fb101ff8917fb78 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 29 Mar 2014 23:31:54 +0100 Subject: [PATCH] add support for 204 (no content) Signed-off-by: Felix Fietkau --- uclient-http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2