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

(-)modules/proxy/proxy_http.c (-7 / +9 lines)
Lines 851-866 Link Here
851
            backasswards = 0;
851
            backasswards = 0;
852
852
853
            keepchar = buffer[12];
853
            keepchar = buffer[12];
854
            if (keepchar == '\0') {
855
                ap_log_error(APLOG_MARK, APLOG_WARNING, 0,
856
                             r->server, "proxy: bad HTTP/%d.%d status line "
857
                             "returned by %s (%s)", major, minor, r->uri,
858
                             r->method);
859
            }
860
            buffer[12] = '\0';
854
            buffer[12] = '\0';
861
            r->status = atoi(&buffer[9]);
855
            r->status = atoi(&buffer[9]);
862
856
863
            buffer[12] = keepchar;
857
            if (keepchar != '\0') {
858
                buffer[12] = keepchar;
859
            } else {
860
                /* 2616 requires the space in Status-Line; the origin
861
                 * server may have sent one but ap_rgetline_core will
862
                 * have stripped it. */
863
                buffer[12] = ' ';
864
                buffer[13] = '\0';
865
            }
864
            r->status_line = apr_pstrdup(p, &buffer[9]);
866
            r->status_line = apr_pstrdup(p, &buffer[9]);
865
            
867
            
866
868

Return to bug 23998