chat(): Log the applied actions before deciding how to forward the request
authorFabian Keil <fk@fabiankeil.de>
Sat, 27 Mar 2021 06:46:00 +0000 (07:46 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 10 Nov 2021 02:19:25 +0000 (03:19 +0100)
jcc.c

diff --git a/jcc.c b/jcc.c
index 9f379c0..5ddf184 100644 (file)
--- 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",