From: Fabian Keil Date: Wed, 12 Nov 2014 11:59:47 +0000 (+0000) Subject: Let server_keep_alive() always remove the Keep-Alive header X-Git-Tag: v_3_0_22~17 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=320155e7eb1cdd404e8cd8c741d3cca045aa774e Let server_keep_alive() always remove the Keep-Alive header Not forwarding the header to the client is a MUST and non-compliance has no advantage here. Fixes Co-Advisor test case rfc2616/hopHdr-Keep-Alive-toClt. --- diff --git a/parsers.c b/parsers.c index 9b402ba1..27ada5f7 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.295 2014/10/18 11:30:56 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.296 2014/11/03 14:41:12 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -1662,6 +1662,8 @@ static jb_err server_keep_alive(struct client_state *csp, char **header) csp->flags |= CSP_FLAG_SERVER_KEEP_ALIVE_TIMEOUT_SET; } + freez(*header); + return JB_ERR_OK; }