1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

proxy_http: don't wait for response body in a HEAD

PR 41644 [Stuart Children]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@571002 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Kew
2007-08-30 00:44:24 +00:00
parent 8e05d0f782
commit c004da0231
2 changed files with 6 additions and 1 deletions

View File

@@ -1592,7 +1592,8 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
int status = r->status;
r->status = HTTP_OK;
/* Discard body, if one is expected */
if ((status != HTTP_NO_CONTENT) && /* not 204 */
if (!r->header_only && /* not HEAD request */
(status != HTTP_NO_CONTENT) && /* not 204 */
(status != HTTP_NOT_MODIFIED)) { /* not 304 */
ap_discard_request_body(rp);
}