consume the newline (overwritten with 0-byte) after receiving cgi process headers
authorFelix Fietkau <nbd@openwrt.org>
Tue, 1 Jan 2013 22:50:58 +0000 (23:50 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 1 Jan 2013 22:50:58 +0000 (23:50 +0100)
relay.c

diff --git a/relay.c b/relay.c
index 59cdaa5..f484aa4 100644 (file)
--- a/relay.c
+++ b/relay.c
@@ -89,6 +89,7 @@ static void relay_process_headers(struct relay *r)
                        r->header_cb = NULL;
                        if (r->header_end)
                                r->header_end(r);
+                       ustream_consume(s, line_len);
                        break;
                }