mirror of
https://github.com/apache/httpd.git
synced 2025-08-13 14:40:20 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user