diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-29 23:31:54 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-29 23:31:54 +0100 |
commit | 1c94253d3764e4e32cffa8703fb101ff8917fb78 (patch) | |
tree | 6370e47cd0a10e5409a4ad047c144df3d42fb655 /uclient-http.c | |
parent | 8fbe2716f550b1feddccdc4e8de3d391d414f5df (diff) | |
download | uclient-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.c | 2 |
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); } |