From 591ea618f0c37fe9015beac6613af92d009b08f2 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 28 Aug 2010 12:55:47 +0000 Subject: [PATCH] Fix a bug in handle_loglevel_header() where a 'scan: ' got lost. --- tools/privoxy-log-parser.pl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index adf75ac5..db1b415f 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.86 2010/07/26 11:28:52 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.87 2010/07/29 14:27:43 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -804,15 +804,10 @@ sub handle_loglevel_header ($) { update_header_highlight_regex($header); } - } elsif ($c =~ m/^scan: ((\w+) (.+) (HTTP\/\d\.\d))/) { + } elsif ($c =~ m/^(scan: )(\w+ .+ HTTP\/\d\.\d)/) { - # Client request line - # Save for statistics (XXX: Not implemented yet) - $req{$t}{'method'} = $2; - $req{$t}{'destination'} = $3; - $req{$t}{'http-version'} = $4; - - $c = highlight_request_line($1); + # scan: HTTP/1.1 200 OK + $c = $1 . highlight_request_line($2); } elsif ($c =~ m/^(scan: )((?:HTTP\/\d\.\d|ICY) (\d+) (.*))/) { -- 2.39.2