summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-21 21:27:30 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-21 21:27:33 +0100
commitd6366570bf706f3970b7f106a1ccd49b584559cf (patch)
treee61c29f574a21d8c65ccbd2a03fe6545625acc33 /relay.c
parent4ead51e17f1e7d7c986daf0cb3f1aeb12d3fe98e (diff)
relay: do forward data if the http request type was HEAD
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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);
}