From ff4b325713026efe05f50d349ba5ad8ca741a84f Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 7 Dec 2017 21:51:50 +0100 Subject: [PATCH] When phusion passenger gives a version number, it's not for Ruby (#1891) * When phusion passenger gives a version number, it's not for Ruby This can be tested [here](http://www.barnivore.com/beer?vfilter=All). There is no such thing as Ruby 5.X * Fix two typo --- src/apps.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps.json b/src/apps.json index 7a6bb6018..02e30e028 100644 --- a/src/apps.json +++ b/src/apps.json @@ -6557,7 +6557,8 @@ "22" ], "headers": { - "X-Powered-By": "^Phusion Passenger" + "X-Powered-By": "^Phusion Passenger ?([\\d.]+)?\\;version:\\1", + "Server": "Phusion Passenger ([\\d.]+)\\;version:\\1" }, "icon": "Phusion Passenger.png", "website": "http://phusionpassenger.com" @@ -7347,7 +7348,7 @@ ], "headers": { "Server": "(?:mod_rails|mod_rack|Phusion(?:\\.|_)Passenger)\\;confidence:50", - "X-Powered-By": "(?:mod_rails|mod_rack|Phusion[\\._ ]Passenger)(?: \\(mod_rails/mod_rack\\))?(?: ?/?([\\d\\.]+))?\\;version:\\1\\;confidence:50" + "X-Powered-By": "(?:mod_rails|mod_rack|Phusion[\\._ ]Passenger)(?: \\(mod_rails/mod_rack\\))?\\;confidence:50" }, "icon": "Ruby on Rails.png", "implies": "Ruby",