From 56278d4af64256e703a6c4cf3d854aac689c391c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 19 Jan 2013 23:55:10 +0100 Subject: [PATCH] do not relay empty chunks, they look like EOF in chunked encoding Signed-off-by: Felix Fietkau --- relay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/relay.c b/relay.c index 5de5cb4..ba6b95a 100644 --- 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); + if (!buf || !len) + return; + uh_chunk_write(cl, buf, len); ustream_consume(s, len); } -- 2.30.2