PR: 34275
Submitted by: Takashi Sato <serai lans-tv.com>
Reviewed by: rpluem
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@612954
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) ab: Do not try to read non existing response bodies of HEAD requests.
+ PR 34275 [Takashi Sato <serai lans-tv.com>]
+
*) Support chroot on Unix-family platforms
PR 43596 [Dimitar Pashev <mitko banksoft-bg.com>]
cl = strstr(c->cbuff, "Content-length:");
if (cl) {
c->keepalive = 1;
- c->length = atoi(cl + 16);
+ /* response to HEAD doesn't have entity body */
+ c->length = posting >= 0 ? atoi(cl + 16) : 0;
}
/* The response may not have a Content-Length header */
if (!cl) {