From: Fabian Keil Date: Tue, 18 Sep 2012 18:29:55 +0000 (+0000) Subject: In finish_http_response(), set 'Connection: close' after preventing pipelining X-Git-Tag: v_3_0_20~274 X-Git-Url: http://www.privoxy.org/gitweb/%40%40?a=commitdiff_plain;h=13a5c4d6d453bba4efbfba6b878b1b93c23c4a42;hp=3ad41be15a2c15597ba3944594536c2bdffe2ac8;p=privoxy.git In finish_http_response(), set 'Connection: close' after preventing pipelining I missed the CGI parts when committing parsers.c v1.250. --- diff --git a/cgi.c b/cgi.c index 46dae93d..d39e4a0e 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.153 2012/06/08 15:15:11 fabiankeil Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.154 2012/07/23 12:42:53 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgi.c,v $ @@ -1714,7 +1714,8 @@ struct http_response *finish_http_response(const struct client_state *csp, struc if (!err) err = enlist_unique_header(rsp->headers, "Pragma", "no-cache"); } - if (!err && !(csp->flags & CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE)) + if (!err && (!(csp->flags & CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE) + || (csp->flags & CSP_FLAG_SERVER_SOCKET_TAINTED))) { err = enlist_unique_header(rsp->headers, "Connection", "close"); }