X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40actions-help-prefix%40HIDE-IF-MODIFIED-SINCE?a=blobdiff_plain;f=jcc.c;h=317d87cf809d44a4d12634321e69bb44f82f3b3a;hb=07ed7ba4cce9ee51d8ff83cd82a381e0611f45b6;hp=ce7c661cad3c71ab7f702446f350a8f755becdde;hpb=b0d1839fecc1594be420e3625a8e7dcce47e4ba7;p=privoxy.git diff --git a/jcc.c b/jcc.c index ce7c661c..317d87cf 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.328 2010/09/14 07:13:10 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.329 2010/09/14 07:14:15 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -1521,7 +1521,7 @@ static void chat(struct client_state *csp) const struct forward_spec *fwd; struct http_request *http; long len = 0; /* for buffer sizes (and negative error codes) */ - int content_filtering_is_enabled = 0; + int buffer_and_filter_content = 0; /* Skeleton for HTTP response, if we should intercept the request */ struct http_response *rsp; @@ -2047,7 +2047,7 @@ static void chat(struct client_state *csp) * now is the time to apply content modification * and send the result to the client. */ - if (content_filtering_is_enabled) + if (buffer_and_filter_content) { p = execute_content_filters(csp); /* @@ -2113,7 +2113,7 @@ static void chat(struct client_state *csp) */ if (server_body || http->ssl) { - if (content_filtering_is_enabled) + if (buffer_and_filter_content) { /* * If there is no memory left for buffering the content, or the buffer limit @@ -2161,7 +2161,7 @@ static void chat(struct client_state *csp) */ byte_count = (unsigned long long)flushed; freez(hdr); - content_filtering_is_enabled = 0; + buffer_and_filter_content = 0; server_body = 1; } } @@ -2328,12 +2328,12 @@ static void chat(struct client_state *csp) if (!http->ssl) /* We talk plaintext */ { - content_filtering_is_enabled = content_filters_enabled(csp->action); + buffer_and_filter_content = content_requires_filtering(csp); } /* * Only write if we're not buffering for content modification */ - if (!content_filtering_is_enabled) + if (!buffer_and_filter_content) { /* * Write the server's (modified) header to