From: Fabian Keil Date: Mon, 2 Oct 2006 16:59:12 +0000 (+0000) Subject: The special header "X-Filter: No" now disables X-Git-Tag: v_3_0_6~69 X-Git-Url: http://www.privoxy.org/gitweb/new.html?a=commitdiff_plain;h=3f442dfbb7e2d279820abb6913adefafb125cc75;p=privoxy.git The special header "X-Filter: No" now disables header filtering as well. --- diff --git a/parsers.c b/parsers.c index b4cdd66a..f4e67ade 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.72 2006/09/23 12:37:21 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.73 2006/09/23 13:26:38 roro Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -40,6 +40,9 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.72 2006/09/23 12:37:21 fabiankeil * * Revisions : * $Log: parsers.c,v $ + * Revision 1.73 2006/09/23 13:26:38 roro + * Replace TABs by spaces in source code. + * * Revision 1.72 2006/09/23 12:37:21 fabiankeil * Don't print a log message every time filter_headers is * entered or left. It only creates noise without any real @@ -2441,6 +2444,8 @@ jb_err client_x_filter(struct client_state *csp, char **header) else { csp->content_type = CT_TABOO; + csp->action->flags &= ~ACTION_FILTER_SERVER_HEADERS; + csp->action->flags &= ~ACTION_FILTER_CLIENT_HEADERS; log_error(LOG_LEVEL_HEADER, "Accepted the client's request to fetch without filtering."); } log_error(LOG_LEVEL_HEADER, "Crunching %s", *header);