From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 12 Apr 2010 16:48:45 +0000 (+0000)
Subject: Stop adding a "Connection: close" header in finish_http_response(), as we're no longe... 
X-Git-Tag: v_3_0_17~165
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/@default-cgi@toggle?a=commitdiff_plain;h=12019a6754666e6cc48ca4bb10db095d0228b21e;p=privoxy.git

Stop adding a "Connection: close" header in finish_http_response(), as we're no longer required to do it.
---

diff --git a/cgi.c b/cgi.c
index 93af14b8..8f1807f0 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-const char cgi_rcs[] = "$Id: cgi.c,v 1.125 2009/06/14 14:37:08 fabiankeil Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.126 2009/10/29 16:53:56 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgi.c,v $
@@ -1636,14 +1636,6 @@ struct http_response *finish_http_response(const struct client_state *csp, struc
       if (!err) err = enlist_unique_header(rsp->headers, "Pragma", "no-cache");
    }
 
-   /*
-    * Quoting RFC 2616:
-    *
-    * HTTP/1.1 applications that do not support persistent connections MUST
-    * include the "close" connection option in every message.
-    */
-   if (!err) err = enlist_unique_header(rsp->headers, "Connection", "close");
-
    /* 
     * Write the head
     */