From 320155e7eb1cdd404e8cd8c741d3cca045aa774e Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 12 Nov 2014 11:59:47 +0000 Subject: [PATCH] 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. --- parsers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2