proxy_http: don't wait for response body in a HEAD
PR 41644 [Stuart Children]
Submitted by: niq
Reviewed by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@571777
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.6
+ *) mod_proxy_http: Don't try to read body of a HEAD request before
+ responding. PR 41644 [Stuart Children <stuart terminus.co.uk>]
+
*) mod_authnz_ldap: Don't return HTTP_UNAUTHORIZED during authorization when
LDAP authentication is configured but we haven't seen any
'Require ldap-*' directives, allowing authorization to be passed to lower
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_proxy_http: Don't wait for response body in a HEAD request
- PR 41644
- http://svn.apache.org/viewvc?view=rev&revision=571002
- +1: niq, rpluem, jim
-
* mod_proxy: Add ProxyPass status option to ignore errors
PR 43167
http://svn.apache.org/viewvc?view=rev&revision=571338
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);
}