privoxy-log-parser: Highlight 'Rewritten request line results in downgrade to http'
authorFabian Keil <fk@fabiankeil.de>
Fri, 1 Jan 2021 11:19:33 +0000 (12:19 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sat, 2 Jan 2021 12:55:03 +0000 (13:55 +0100)
tools/privoxy-log-parser.pl

index 7623100..9ef389d 100755 (executable)
@@ -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);