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:
5152b71
)
http: ignore empty lines before HTTP response
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Aug 2014 19:10:30 +0000
(21:10 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Aug 2014 19:10:31 +0000
(21:10 +0200)
Fixes HTTP keepalive issues with some servers
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 47c890fca689cd0457108725b5ac91098d59142a..4633956e63519e637749e9a82efb195f34eb6a4d 100644
(file)
--- a/
uclient-http.c
+++ b/
uclient-http.c
@@
-552,6
+552,9
@@
static void uclient_parse_http_line(struct uclient_http *uh, char *data)
if (uh->state == HTTP_STATE_REQUEST_DONE) {
char *code;
+ if (!strlen(data))
+ return;
+
/* HTTP/1.1 */
strsep(&data, " ");