1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

The ap_set_keepalive call needs to be after the call to

ap_basic_http_header.  Without this, there are times that HTTP 1.0
requests will do keepalive connections.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87823 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Bloom
2001-01-24 23:07:23 +00:00
parent 1bd791c4e9
commit c422d96754

View File

@@ -2479,8 +2479,6 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, apr_b
fixup_vary(r);
}
ap_set_keepalive(r);
if (r->chunked) {
apr_table_mergen(r->headers_out, "Transfer-Encoding", "chunked");
apr_table_unset(r->headers_out, "Content-Length");
@@ -2586,6 +2584,8 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, apr_b
terminate_header(buff);
ap_set_keepalive(r);
r->sent_bodyct = 1; /* Whatever follows is real body stuff... */
b2 = apr_brigade_create(r->pool);