projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
74ed6c9
)
privoxy-log-parser: Highlight 'Rewritten request line results in downgrade to http'
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 1 Jan 2021 11:19:33 +0000
(12:19 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 2 Jan 2021 12:55:03 +0000
(13:55 +0100)
tools/privoxy-log-parser.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-log-parser.pl
b/tools/privoxy-log-parser.pl
index
7623100
..
9ef389d
100755
(executable)
--- 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',
'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,
'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: ).*');
# 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);
} else {
found_unknown_content($c);