sed_https(): Unset CSP_FLAG_CLIENT_HEADER_PARSING_DONE
[privoxy.git] / parsers.c
index df2a325..2812161 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1215,7 +1215,13 @@ jb_err sed_https(struct client_state *csp)
    csp->headers->first = csp->https_headers->first;
    csp->headers->last  = csp->https_headers->last;
 
    csp->headers->first = csp->https_headers->first;
    csp->headers->last  = csp->https_headers->last;
 
+   /*
+    * We want client header filters and taggers
+    * so temporarly remove the flag.
+    */
+   csp->flags &= ~CSP_FLAG_CLIENT_HEADER_PARSING_DONE;
    err = sed(csp, FILTER_CLIENT_HEADERS);
    err = sed(csp, FILTER_CLIENT_HEADERS);
+   csp->flags |= CSP_FLAG_CLIENT_HEADER_PARSING_DONE;
 
    csp->headers->first = headers.first;
    csp->headers->last  = headers.last;
 
    csp->headers->first = headers.first;
    csp->headers->last  = headers.last;