projects
/
oweals
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
438ebb9
)
properly terminate POST requests
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 29 Mar 2014 19:17:46 +0000
(20:17 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 29 Mar 2014 19:17:46 +0000
(20:17 +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 1ab1f4619c5dd52820b1e0b928be97ef2e2cf49b..2005f0cd0cf5ba9e6c58ab3ef800daccb1cbf26e 100644
(file)
--- a/
uclient-http.c
+++ b/
uclient-http.c
@@
-850,6
+850,8
@@
uclient_http_request_done(struct uclient *cl)
return -1;
uclient_http_send_headers(uh);
+ if (uh->req_type == REQ_POST)
+ ustream_printf(uh->us, "0\r\n\r\n");
uh->state = HTTP_STATE_REQUEST_DONE;
return 0;