View | Details | Raw Unified | Return to bug 50402
Collapse All | Expand All

(-)mod_proxy_http.c.orig (-4 / +14 lines)
Lines 1001-1007 Link Here
1001
     *
1001
     *
1002
     *   We have no request body (handled by RB_STREAM_CL)
1002
     *   We have no request body (handled by RB_STREAM_CL)
1003
     *
1003
     *
1004
     *   We have a request body length <= MAX_MEM_SPOOL
1004
     *   We have a request body length <= MAX_MEM_SPOOL and
1005
     *   the administrator has not setenv proxy-sendchunked
1006
     *   or proxy-sendchunks
1005
     *
1007
     *
1006
     *   The administrator has setenv force-proxy-request-1.0
1008
     *   The administrator has setenv force-proxy-request-1.0
1007
     *
1009
     *
Lines 1033-1047 Link Here
1033
    if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(input_brigade))) {
1035
    if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(input_brigade))) {
1034
        /* The whole thing fit, so our decision is trivial, use
1036
        /* The whole thing fit, so our decision is trivial, use
1035
         * the filtered bytes read from the client for the request
1037
         * the filtered bytes read from the client for the request
1036
         * body Content-Length.
1038
         * body Content-Length, unless the administrator has
1039
         * setenv proxy-sendchunked or proxy-sendchunks.
1037
         *
1040
         *
1038
         * If we expected no body, and read no body, do not set
1041
         * If we expected no body, and read no body, do not set
1039
         * the Content-Length.
1042
         * the Content-Length.
1040
         */
1043
         */
1041
        if (old_cl_val || old_te_val || bytes_read) {
1044
        if (old_te_val && (apr_table_get(r->subprocess_env, "proxy-sendchunked") ||
1045
                           apr_table_get(r->subprocess_env, "proxy-sendchunks")) ) {
1046
            rb_method = RB_STREAM_CHUNKED;
1047
        }
1048
        else if (old_cl_val || old_te_val || bytes_read) {
1042
            old_cl_val = apr_off_t_toa(r->pool, bytes_read);
1049
            old_cl_val = apr_off_t_toa(r->pool, bytes_read);
1050
            rb_method = RB_STREAM_CL;
1051
        }
1052
        else {
1053
            rb_method = RB_STREAM_CL;
1043
        }
1054
        }
1044
        rb_method = RB_STREAM_CL;
1045
    }
1055
    }
1046
    else if (old_te_val) {
1056
    else if (old_te_val) {
1047
        if (force10
1057
        if (force10

Return to bug 50402