Commit 094b981f authored by Joe Orton's avatar Joe Orton
Browse files

* modules/proxy/proxy_http.c (ap_proxy_http_process_response): Don't treat

the 205 status-code like 204 or 304, per recent http-wg discussion:
http://lists.w3.org/Archives/Public/ietf-http-wg/2004JulSep/0083.html


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105752 13f79535-47bb-0310-9956-ffa450edef68
parent 69ad0f6f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1002,7 +1002,6 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
        if ((!r->header_only) &&                   /* not HEAD request */
            !interim_response &&                   /* not any 1xx response */
            (r->status != HTTP_NO_CONTENT) &&      /* not 204 */
            (r->status != HTTP_RESET_CONTENT) &&   /* not 205 */
            (r->status != HTTP_NOT_MODIFIED)) {    /* not 304 */

            /* We need to copy the output headers and treat them as input
@@ -1117,7 +1116,6 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
            r->status = HTTP_OK;
            /* Discard body, if one is expected */
            if ((status != HTTP_NO_CONTENT) && /* not 204 */
                (status != HTTP_RESET_CONTENT) && /* not 205 */
                (status != HTTP_NOT_MODIFIED)) { /* not 304 */
               ap_discard_request_body(rp);
           }