projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974846c
)
privoxy-log-parser.pl: Unbreak the gathering of host statistics with http requests
author
Fabian Keil
<fk@fabiankeil.de>
Tue, 9 Jun 2020 08:07:09 +0000
(10:07 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Tue, 9 Jun 2020 09:20:12 +0000
(11:20 +0200)
... and CONNECT requests.
tools/privoxy-log-parser.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-log-parser.pl
b/tools/privoxy-log-parser.pl
index
fb22098
..
0963993
100755
(executable)
--- a/
tools/privoxy-log-parser.pl
+++ b/
tools/privoxy-log-parser.pl
@@
-2040,7
+2040,7
@@
sub gather_loglevel_clf_stats($) {
$stats{'http-version'}{$http_version}++;
if ($cli_options{'host-statistics-threshold'} != 0) {
- $resource =~ m@(?:http
[s]://)
([^/]+)/?@;
+ $resource =~ m@(?:http
s?://)?
([^/]+)/?@;
$stats{'hosts'}{$1}++;
}
$stats{'content-size-total'} += $size;