summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
Diffstat (limited to 'relay.c')
-rw-r--r--relay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/relay.c b/relay.c
index 6195349..7331a0a 100644
--- a/relay.c
+++ b/relay.c
@@ -142,7 +142,9 @@ static void relay_read_cb(struct ustream *s, int bytes)
if (!buf || !len)
return;
- uh_chunk_write(cl, buf, len);
+ if (!r->skip_data)
+ uh_chunk_write(cl, buf, len);
+
ustream_consume(s, len);
}