On Wed, Sep 18, 2013 at 3:55 PM, Yann Ylavic <[email protected]> wrote:

> However, if the case "ought to be handled as an error", it should rather
> be (in ap_http_filter)  :
>
>
> if ((f->r->proxyreq != PROXYREQ_RESPONSE) || lenp) {
>

Well, rather :
            if (!lenp
                    && (strcasecmp(tenc, "chunked") == 0 // fast path
                           || ap_find_last_token(f->r->pool, tenc,
"chunked"))) {
                ctx->state = BODY_CHUNK;
            }
            else if (lenp || f->r->proxyreq != PROXYREQ_RESPONSE) {

or something equivalent (and nicer).

Reply via email to