X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=relay.c;fp=relay.c;h=7331a0a59d2eedbe25e984b8b60a0d62580581c9;hb=d6366570bf706f3970b7f106a1ccd49b584559cf;hp=619534970c7c5b948031b877a50e52aa7138b103;hpb=4ead51e17f1e7d7c986daf0cb3f1aeb12d3fe98e;p=project%2Fuhttpd.git 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); }