Signed-off-by: Felix Fietkau <nbd@openwrt.org>
struct ustream *s = &r->sfd.stream;
int len;
struct ustream *s = &r->sfd.stream;
int len;
s->eof = true;
ustream_get_read_buf(s, &len);
if (len)
s->eof = true;
ustream_get_read_buf(s, &len);
if (len)
if (r->process_done)
uloop_timeout_set(&r->timeout, 1);
if (r->process_done)
uloop_timeout_set(&r->timeout, 1);
- relay_process_headers(r);
+ if (!r->error)
+ relay_process_headers(r);
struct client *cl;
bool process_done;
struct client *cl;
bool process_done;