projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c62d6b1
)
set eof on HEAD requests after header end
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 21 Mar 2014 20:32:01 +0000
(21:32 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 21 Mar 2014 20:32:01 +0000
(21:32 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient-http.c
patch
|
blob
|
history
diff --git
a/uclient-http.c
b/uclient-http.c
index
fcf3b9b
..
d4d4fba
100644
(file)
--- 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);
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;
}
return;
}