From a8214172984f66ffd964e1e749ca2682dd958947 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 24 Nov 2012 14:09:11 +0000 Subject: [PATCH] Set the SERVER_CONTENT_LENGTH_SET flag after creating a new Content-Length header This allows to keep the client connection alive after filtering a chunk-encoded response. --- parsers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index b0459b6c..70a57a2e 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.267 2012/11/24 14:06:18 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.268 2012/11/24 14:07:57 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -1228,6 +1228,7 @@ jb_err update_server_headers(struct client_state *csp) log_error(LOG_LEVEL_HEADER, "Content modified with no Content-Length header set. " "Created: %s.", header); + csp->flags |= CSP_FLAG_SERVER_CONTENT_LENGTH_SET; } } #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ -- 2.39.2