Don't disable redirect checkers in redirect_url()
[privoxy.git] / jcc.c
diff --git a/jcc.c b/jcc.c
index 12e7736..58af472 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -3864,6 +3864,18 @@ static void handle_established_connection(struct client_state *csp)
                return;
             }
 
+            /*
+             * Disable redirect checkers, so that they will be only run
+             * again if the user also enables them through tags.
+             *
+             * From a performance point of view it doesn't matter,
+             * but it prevents duplicated log messages.
+             */
+#ifdef FEATURE_FAST_REDIRECTS
+            csp->action->flags &= ~ACTION_FAST_REDIRECTS;
+#endif
+            csp->action->flags &= ~ACTION_REDIRECT;
+
             /*
              * We have now received the entire server header,
              * filter it and send the result to the client