PR 41644 [Stuart Children]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@571002
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.3.0
+ *) mod_proxy_http: Don't try to read body of a HEAD request before
+ responding.
+ PR 41644 [Stuart Children <stuart terminus.co.uk>]
+
*) mod_autoindex: Add in Type and Charset options to
IndexOptions directive. This allows the admin to explicitly
set the content-type and charset of the generated page.
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);
}