projects
/
oweals
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
file: disable chunked encoding for file responses
[oweals/uhttpd.git]
/
relay.c
diff --git
a/relay.c
b/relay.c
index 0540bd8e58d29d118293fc466becd8db6260b0be..7331a0a59d2eedbe25e984b8b60a0d62580581c9 100644
(file)
--- a/
relay.c
+++ b/
relay.c
@@
-28,6
+28,7
@@
void uh_relay_free(struct relay *r)
if (r->proc.pending)
kill(r->proc.pid, SIGKILL);
if (r->proc.pending)
kill(r->proc.pid, SIGKILL);
+ uloop_timeout_cancel(&r->timeout);
uloop_process_delete(&r->proc);
ustream_free(&r->sfd.stream);
close(r->sfd.fd.fd);
uloop_process_delete(&r->proc);
ustream_free(&r->sfd.stream);
close(r->sfd.fd.fd);
@@
-141,7
+142,9
@@
static void relay_read_cb(struct ustream *s, int bytes)
if (!buf || !len)
return;
if (!buf || !len)
return;
- uh_chunk_write(cl, buf, len);
+ if (!r->skip_data)
+ uh_chunk_write(cl, buf, len);
+
ustream_consume(s, len);
}
ustream_consume(s, len);
}