A keepalive response need not neccessarily have included any content-length

header, handle this case properly for 304 responses. PR39789



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@413861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Colm MacCarthaigh
2006-06-13 10:51:54 +00:00
parent 33ff763673
commit 825c3efbcc

View File

@ -1451,6 +1451,11 @@ static void read_connection(struct connection * c)
c->keepalive = 1;
c->length = atoi(cl + 16);
}
/* The response may not have a Content-Length header */
if (!cl) {
c->keepalive = 1;
c->length = 0;
}
}
c->bread += c->cbx - (s + l - c->cbuff) + r - tocopy;
totalbread += c->bread;