sed_https(): Unset CSP_FLAG_CLIENT_HEADER_PARSING_DONE
authorFabian Keil <fk@fabiankeil.de>
Wed, 26 Feb 2020 14:35:28 +0000 (15:35 +0100)
committerFabian Keil <fk@fabiankeil.de>
Fri, 28 Feb 2020 06:31:27 +0000 (07:31 +0100)
... to make sure we're applying client header taggers and filters.

Sponsored by: Robert Klemme

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;
 
+   /*
+    * 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);
+   csp->flags |= CSP_FLAG_CLIENT_HEADER_PARSING_DONE;
 
    csp->headers->first = headers.first;
    csp->headers->last  = headers.last;