]> granicus.if.org Git - apache/commit
As Greg noted, set_keepalive has to happen before we check r->chunked, but
authorRyan Bloom <rbb@apache.org>
Wed, 24 Jan 2001 23:47:42 +0000 (23:47 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 24 Jan 2001 23:47:42 +0000 (23:47 +0000)
commitb7ba872c74c52934dab452895d6baed85fe3b5e7
tree982fe73693618eaa4afefa99e9797b3859ccbfe1
parentc422d9675458e9b6de196b18e454990f34fa186c
As Greg noted, set_keepalive has to happen before we check r->chunked, but
it also has to happen after ap_basic_http_header.  Otherwise, we don't
set r->connection->keepalive correctly, and it can be -1 for requests that
don't support keepalive.  This moves ap_basic_http_header to above the
call to set_keepalive (after reversing the previous patch), which should
be perfectly safe, while still fixing the original bug.
Submitted by: Greg Stein

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87824 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_protocol.c