summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
Diffstat (limited to 'relay.c')
-rw-r--r--relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/relay.c b/relay.c
index 7331a0a..6db58ac 100644
--- a/relay.c
+++ b/relay.c
@@ -155,7 +155,7 @@ static void relay_close_if_done(struct uloop_timeout *timeout)
while (ustream_poll(&r->sfd.stream));
- if (!(r->process_done || s->eof) || ustream_pending_data(s, false))
+ if (!(r->process_done || s->eof) || (ustream_pending_data(s, false) && !r->header_cb))
return;
uh_relay_close(r, r->ret);