From cb2a0e6488149b2f625c7cf566de792756101912 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Wed, 14 Jun 2017 21:48:31 +1000 Subject: [PATCH] [http_load_] Also count elements served over HTTPS Signed-off-by: Olivier Mehani --- plugins/http/http_load_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/http/http_load_ b/plugins/http/http_load_ index 39677ca8..6e09e046 100755 --- a/plugins/http/http_load_ +++ b/plugins/http/http_load_ @@ -309,7 +309,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") { $verbose && print " Processing: " . $$link[0] . " " . $$link[1] . " " . $$link[2] . "\n"; # Extract the hostname and add it to the hash - if($$link[2] =~ m/http\:\/\/([^\/]+).*/){ + if($$link[2] =~ m/https?\:\/\/([^\/]+).*/){ $host=$1; $output{"elements_" . $host}+=1; }