projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
properly terminate POST requests
[project/uclient.git]
/
uclient-http.c
diff --git
a/uclient-http.c
b/uclient-http.c
index
1ab1f46
..
2005f0c
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;