From e6d86c5315c2f0e6bbf9b6e9cf496f72dc0660af Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 1 Jan 2021 12:19:33 +0100 Subject: [PATCH] privoxy-log-parser: Highlight 'Rewritten request line results in downgrade to http' --- tools/privoxy-log-parser.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 7623100b..9ef389d8 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -179,6 +179,7 @@ sub prepare_our_stuff() { 'pcrs-delimiter' => 'light_red', 'ignored' => 'light_red', 'action-bits-update' => 'light_red', + 'http-downgrade' => 'light_red', 'configuration-line' => 'red', 'content-type' => 'yellow', 'HOST' => HEADER_DEFAULT_COLOUR, @@ -1311,6 +1312,11 @@ sub handle_loglevel_redirect($) { # Rewrite detected: GET https://www.electrobsd.org/CommonJS/ajax/libs/jquery/3.4.1/jquery.min.js HTTP/1.1 $c = highlight_matched_request_line($c, '(?<=^Rewrite detected: ).*'); + } elsif ($c =~ m/^Rewritten request line results in downgrade to http/) { + + # Rewritten request line results in downgrade to http + $c =~ s@(downgrade)@$h{'http-downgrade'}$1$h{'Standard'}@; + } else { found_unknown_content($c); -- 2.39.2