X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=filters.c;h=278c113e15c20f68df1d994ee99aa21594728de7;hp=0d36485d8fc4c57d044ecbc53cb5d9f14a7818a1;hb=4490d451f9b61baada414233897a83ec8d9908aa;hpb=767afb7f5d7062d75385b9ab3afdad47d0249a39 diff --git a/filters.c b/filters.c index 0d36485d..278c113e 100644 --- a/filters.c +++ b/filters.c @@ -2300,7 +2300,20 @@ void get_url_actions(struct client_state *csp, struct http_request *http) struct url_actions *b; int i; - init_current_action(csp->action); +#ifdef FEATURE_HTTPS_INSPECTION + if (!csp->http->client_ssl) +#endif + { + /* + * When filtering TLS traffic this function gets called a + * second time after the encrypted headers have been received. + * + * Only initialize the first time. The second time we apply + * the newly set actions on top of the ones that were set + * the first time. + */ + init_current_action(csp->action); + } for (i = 0; i < MAX_AF_FILES; i++) {