Project

General

Profile

Bug #3033 » mod_proxy.c.diff

Adapt patch from mod_fastcgi.c to mod_proxy.c - flynn, 2020-12-22 11:01

View differences:

src/mod_proxy.c 2020-12-22 11:59:36.398559655 +0100
static handler_t proxy_stdin_append(gw_handler_ctx *hctx) {
/*handler_ctx *hctx = (handler_ctx *)gwhctx;*/
chunkqueue * const req_cq = &hctx->r->reqbody_queue;
const off_t req_cqlen = chunkqueue_length(req_cq);
off_t req_cqlen = chunkqueue_length(req_cq);
if (req_cqlen > MAX_WRITE_LIMIT) req_cqlen = MAX_WRITE_LIMIT;
if (req_cqlen) {
/* XXX: future: use http_chunk_len_append() */
buffer * const tb = hctx->r->tmp_buf;
(2-2/2)