X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=parsers.c;h=1b897bcb95960b3edc1c520b92016e8b0711e38e;hp=281216155bcd3f275b0e4608d9c3a3911837ef67;hb=33e6e16fbc58c7f752c6b6899f46839f057ca2b5;hpb=30c73cb52bfe34d9de987ec107389b888da318fe diff --git a/parsers.c b/parsers.c index 28121615..1b897bcb 100644 --- a/parsers.c +++ b/parsers.c @@ -4,7 +4,7 @@ * * Purpose : Declares functions to parse/crunch headers and pages. * - * Copyright : Written by and Copyright (C) 2001-2017 the + * Copyright : Written by and Copyright (C) 2001-2020 the * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written @@ -1215,6 +1215,13 @@ jb_err sed_https(struct client_state *csp) csp->headers->first = csp->https_headers->first; csp->headers->last = csp->https_headers->last; + /* + * Start with fresh tags. Already exising tags may + * be set again. This is necessary to overrule + * URL-based patterns. + */ + destroy_list(csp->tags); + /* * We want client header filters and taggers * so temporarly remove the flag.