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
817 817
static handler_t proxy_stdin_append(gw_handler_ctx *hctx) {
818 818
    /*handler_ctx *hctx = (handler_ctx *)gwhctx;*/
819 819
    chunkqueue * const req_cq = &hctx->r->reqbody_queue;
820
    const off_t req_cqlen = chunkqueue_length(req_cq);
820
    off_t req_cqlen = chunkqueue_length(req_cq);
821
    if (req_cqlen > MAX_WRITE_LIMIT) req_cqlen = MAX_WRITE_LIMIT;
821 822
    if (req_cqlen) {
822 823
        /* XXX: future: use http_chunk_len_append() */
823 824
        buffer * const tb = hctx->r->tmp_buf;
(2-2/2)