Commit 6521ea25 authored by Colm MacCarthaigh's avatar Colm MacCarthaigh
Browse files

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
parent 41d5daed
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;