projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3560e89
)
do not relay empty chunks, they look like EOF in chunked encoding
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Jan 2013 22:55:10 +0000
(23:55 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Jan 2013 22:55:10 +0000
(23:55 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
relay.c
patch
|
blob
|
history
diff --git
a/relay.c
b/relay.c
index
5de5cb4
..
ba6b95a
100644
(file)
--- a/
relay.c
+++ b/
relay.c
@@
-130,6
+130,9
@@
static void relay_read_cb(struct ustream *s, int bytes)
}
buf = ustream_get_read_buf(s, &len);
}
buf = ustream_get_read_buf(s, &len);
+ if (!buf || !len)
+ return;
+
uh_chunk_write(cl, buf, len);
ustream_consume(s, len);
}
uh_chunk_write(cl, buf, len);
ustream_consume(s, len);
}