From 66b4e5035104658ad54ef48a4d04e61cba8d4e01 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Mar 2014 21:32:01 +0100 Subject: [PATCH] set eof on HEAD requests after header end Signed-off-by: Felix Fietkau --- uclient-http.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uclient-http.c b/uclient-http.c index fcf3b9b..d4d4fba 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -133,6 +133,12 @@ static void uclient_parse_http_line(struct uclient_http *uh, char *data) uclient_http_process_headers(uh); if (uh->uc.cb->header_done) uh->uc.cb->header_done(&uh->uc); + + if (uh->req_type == REQ_HEAD) { + uh->eof = true; + uclient_notify_eof(uh); + } + return; } -- 2.11.0