summaryrefslogtreecommitdiff
path: root/uclient-http.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-29 23:31:54 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-29 23:31:54 +0100
commit1c94253d3764e4e32cffa8703fb101ff8917fb78 (patch)
tree6370e47cd0a10e5409a4ad047c144df3d42fb655 /uclient-http.c
parent8fbe2716f550b1feddccdc4e8de3d391d414f5df (diff)
downloaduclient-1c94253d3764e4e32cffa8703fb101ff8917fb78.tar.gz
add support for 204 (no content)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-http.c')
-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);
}