Highlight: Done reading from server. Content length: 6018 as expected. Bytes most...
authorFabian Keil <fk@fabiankeil.de>
Sat, 12 Sep 2009 12:38:14 +0000 (12:38 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 12 Sep 2009 12:38:14 +0000 (12:38 +0000)
tools/privoxy-log-parser.pl

index 899b16c..86a1a6e 100755 (executable)
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
-# $Id: privoxy-log-parser.pl,v 1.48 2009/09/12 12:36:02 fabiankeil Exp $
+# $Id: privoxy-log-parser.pl,v 1.49 2009/09/12 12:36:53 fabiankeil Exp $
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@ -1538,8 +1538,9 @@ sub handle_loglevel_connect ($) {
         # 3.0.15 and later:
         # Done reading from server. Expected content length: 24892. \
         #  Actual content length: 24892. Bytes most recently read: 4412.
-        $c =~ s@(?<=Expected content length: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
-        $c =~ s@(?<=Actual content length: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+        # Done reading from server. Content length: 6018 as expected. \
+        #  Bytes most recently read: 294.
+        $c =~ s@(?<=ontent length: )(\d+)@$h{'Number'}$1$h{'Standard'}@g;
         $c =~ s@(?<=received: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c =~ s@(?<=read: )(\d+)@$h{'Number'}$1$h{'Standard'}@;