From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 27 Mar 2021 06:46:00 +0000 (+0100)
Subject: chat(): Log the applied actions before deciding how to forward the request
X-Git-Tag: v_3_0_33~63
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/faq/@default-cgi@/toggle?a=commitdiff_plain;h=fc9b885ff6c905f0a61e45fb90b4e763577af81d;p=privoxy.git

chat(): Log the applied actions before deciding how to forward the request
---

diff --git a/jcc.c b/jcc.c
index 9f379c01..5ddf1842 100644
--- a/jcc.c
+++ b/jcc.c
@@ -4340,13 +4340,14 @@ static void chat(struct client_state *csp)
    }
 #endif
 
+   log_applied_actions(csp->action);
+
    /* decide how to route the HTTP request */
    fwd = forward_url(csp, http);
 
    freez(csp->headers->first->str);
    build_request_line(csp, fwd, &csp->headers->first->str);
 
-   log_applied_actions(csp->action);
    if (fwd->forward_host)
    {
       log_error(LOG_LEVEL_CONNECT, "via [%s]:%d to: %s",