This makes sure tagging based on the encrypted client
headers works even if a tag has already been set based
on the unencrypted ones.
Sponsored by: Robert Klemme
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.