]> granicus.if.org Git - apache/commitdiff
The ap_set_keepalive call needs to be after the call to
authorRyan Bloom <rbb@apache.org>
Wed, 24 Jan 2001 23:07:23 +0000 (23:07 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 24 Jan 2001 23:07:23 +0000 (23:07 +0000)
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

modules/http/http_protocol.c

index 358412ae309b1fd884b3e9dbdb8c1046ae72cdf8..cd6684b1ec3f9f419c9e45121814da5463570d83 100644 (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);