X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=parsers.c;h=70f368f1d8244cbdbd3be3d5c2a4e7e05fb6b194;hp=b65474ce3c3b3a7725c854c75e9410c4abfe1f54;hb=14ef58cc78259adaf8d8f06434937baa2004b823;hpb=4490d451f9b61baada414233897a83ec8d9908aa diff --git a/parsers.c b/parsers.c index b65474ce..70f368f1 100644 --- a/parsers.c +++ b/parsers.c @@ -1217,7 +1217,7 @@ jb_err sed_https(struct client_state *csp) csp->headers->last = csp->https_headers->last; /* - * Start with fresh tags. Already exising tags may + * Start with fresh tags. Already existing tags may * be set again. This is necessary to overrule * URL-based patterns. */ @@ -1231,6 +1231,12 @@ jb_err sed_https(struct client_state *csp) err = sed(csp, FILTER_CLIENT_HEADERS); csp->flags |= CSP_FLAG_CLIENT_HEADER_PARSING_DONE; + /* + * Update the last header which may have changed + * due to header additions, + */ + csp->https_headers->last = csp->headers->last; + csp->headers->first = headers.first; csp->headers->last = headers.last;