From f327408b43f9111e91ad0b12cffaae4ce94f9cba Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 30 Mar 2018 02:02:20 +0200 Subject: [PATCH] Apparently, some sites are exposing their varnish version (#2187) * Apparently, some sites are exposing their varnish version This can be tested [here](https://en.wikipedia.org/wiki/Erlk%C3%B6nig_(Goethe)) * Simplify the regexp, since it's a `search` and not a `match` --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 323d0a9de..2fba34e3e 100644 --- a/src/apps.json +++ b/src/apps.json @@ -10303,7 +10303,7 @@ 23 ], "headers": { - "Via": ".*Varnish", + "Via": "varnish(?: \\(Varnish/([\\d.]+)\\))?\\;version:\\1", "X-Varnish": "", "X-Varnish-Action": "", "X-Varnish-Age": "",