diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-19 23:55:10 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-19 23:55:10 +0100 |
commit | 56278d4af64256e703a6c4cf3d854aac689c391c (patch) | |
tree | 095b36e587de6488a1ae5152d9288f75d7485ca0 /relay.c | |
parent | 3560e89406c81814254bdb45db19498387265cb7 (diff) |
do not relay empty chunks, they look like EOF in chunked encoding
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'relay.c')
-rw-r--r-- | relay.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -130,6 +130,9 @@ static void relay_read_cb(struct ustream *s, int bytes) } buf = ustream_get_read_buf(s, &len); + if (!buf || !len) + return; + uh_chunk_write(cl, buf, len); ustream_consume(s, len); } |