From: Fabian Keil Date: Sat, 24 Nov 2012 14:09:11 +0000 (+0000) Subject: Set the SERVER_CONTENT_LENGTH_SET flag after creating a new Content-Length header X-Git-Tag: v_3_0_20~160 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=a8214172984f66ffd964e1e749ca2682dd958947 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. --- 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 */