From: Felix Fietkau Date: Sat, 29 Mar 2014 22:31:54 +0000 (+0100) Subject: add support for 204 (no content) X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=commitdiff_plain;h=1c94253d3764e4e32cffa8703fb101ff8917fb78 add support for 204 (no content) Signed-off-by: Felix Fietkau --- 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); }