projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use pipes instead of a socketpair, EOF handling is broken with sockets
[project/uhttpd.git]
/
client.c
diff --git
a/client.c
b/client.c
index
43c4af8
..
7920102
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-277,7
+277,8
@@
void client_poll_post_data(struct client *cl)
break;
if (d->data_send)
- d->data_send(cl, buf, cur_len);
+ cur_len = d->data_send(cl, buf, cur_len);
+
r->content_length -= cur_len;
ustream_consume(cl->us, cur_len);
continue;